diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-14 17:24:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-14 17:24:04 +0200 |
commit | 5961a6da03e70dbfa811c30c4ec684d3a7746bf6 (patch) | |
tree | 8c5eb977e7a417f978e1ef39b9f3cacd4397e799 /editor/groups_editor.cpp | |
parent | 2aad7f1376897a6cb57471d03169507fac178b42 (diff) | |
parent | 5436abefe4f40eb84f96c36ae372df39ec4295d7 (diff) |
Merge pull request #21717 from willnationsdev/edicon-refactor
Refactor editor icon retrieval
Diffstat (limited to 'editor/groups_editor.cpp')
-rw-r--r-- | editor/groups_editor.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp index 0efd14e932..cb9703342f 100644 --- a/editor/groups_editor.cpp +++ b/editor/groups_editor.cpp @@ -90,12 +90,7 @@ void GroupDialog::_load_nodes(Node *p_current) { node->set_metadata(0, path); node->set_tooltip(0, path); - Ref<Texture> icon; - if (p_current->has_meta("_editor_icon")) { - icon = p_current->get_meta("_editor_icon"); - } else { - icon = get_icon((has_icon(p_current->get_class(), "EditorIcons") ? p_current->get_class() : String("Object")), "EditorIcons"); - } + Ref<Texture> icon = EditorNode::get_singleton()->get_object_icon(p_current, "Node"); node->set_icon(0, icon); if (!_can_edit(p_current, selected_group)) { |