mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Update all get_configuration_warning to retrieve warnings from the parent
This commit is contained in:
parent
00949f0c5f
commit
9fc2b0fddc
40 changed files with 284 additions and 114 deletions
|
|
@ -250,7 +250,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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue