summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-07-18 17:52:13 +0200
committerGitHub <noreply@github.com>2016-07-18 17:52:13 +0200
commitf04137b9423a543efdfee8264acdc31670711d2c (patch)
tree9b93c7b5394a939266ec4047c7b02ca3218bb180
parent72194ceededdf9472b2f8398581fa5aeb6a20cc1 (diff)
parent0610c77e43eeae135ca0ea14eb5deab3762fe7dc (diff)
Merge pull request #5781 from vnen/create-node-base-icon
Add icon for root node in Create Dialog
-rw-r--r--tools/editor/create_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp
index 210b799f3d..07d1566ab8 100644
--- a/tools/editor/create_dialog.cpp
+++ b/tools/editor/create_dialog.cpp
@@ -154,6 +154,9 @@ void CreateDialog::_update_search() {
TreeItem *root = search_options->create_item();
root->set_text(0,base_type);
+ if (has_icon(base_type,"EditorIcons")) {
+ root->set_icon(0,get_icon(base_type,"EditorIcons"));
+ }
List<StringName>::Element *I=type_list.front();
TreeItem *to_select=NULL;