Merge pull request #38743 from arrowinaknee/node-config-warnings

Update all get_configuration_warning() to retrieve warnings from the parent
This commit is contained in:
Rémi Verschelde 2020-10-01 14:03:29 +02:00 committed by GitHub
commit 12091b39d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 284 additions and 114 deletions

View file

@ -251,7 +251,7 @@ bool SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
if (can_rename) { //should be can edit..
String warning = p_node->get_configuration_warning();
if (warning != String()) {
if (!warning.empty()) {
item->add_button(0, get_theme_icon("NodeWarning", "EditorIcons"), BUTTON_WARNING, false, TTR("Node configuration warning:") + "\n" + p_node->get_configuration_warning());
}