diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-02-06 17:03:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 17:03:11 +0100 |
commit | 79a4d782a5ef0801fb65ee8c8a488942044c8e10 (patch) | |
tree | 28da6865bd5f3e92dc0852ff60cafc74329857b7 /editor/scene_tree_editor.cpp | |
parent | e38df41de8f20516ab8b2c91bedb4388cd9e41aa (diff) | |
parent | 1ce81dc5f2bd5db8bff0e60af846b994492810f9 (diff) | |
download | redot-engine-79a4d782a5ef0801fb65ee8c8a488942044c8e10.tar.gz |
Merge pull request #57709 from jmb462/missing-sname-optimization
Diffstat (limited to 'editor/scene_tree_editor.cpp')
-rw-r--r-- | editor/scene_tree_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index fcb4f5b32e..e9aed53b4e 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -365,9 +365,9 @@ bool SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent, bool p_scroll } else if (p_node->is_class("CanvasLayer")) { bool v = p_node->call("is_visible"); if (v) { - item->add_button(0, get_theme_icon("GuiVisibilityVisible", "EditorIcons"), BUTTON_VISIBILITY, false, TTR("Toggle Visibility")); + item->add_button(0, get_theme_icon(SNAME("GuiVisibilityVisible"), SNAME("EditorIcons")), BUTTON_VISIBILITY, false, TTR("Toggle Visibility")); } else { - item->add_button(0, get_theme_icon("GuiVisibilityHidden", "EditorIcons"), BUTTON_VISIBILITY, false, TTR("Toggle Visibility")); + item->add_button(0, get_theme_icon(SNAME("GuiVisibilityHidden"), SNAME("EditorIcons")), BUTTON_VISIBILITY, false, TTR("Toggle Visibility")); } if (!p_node->is_connected("visibility_changed", callable_mp(this, &SceneTreeEditor::_node_visibility_changed))) { |