diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-07-18 17:52:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-18 17:52:13 +0200 |
commit | f04137b9423a543efdfee8264acdc31670711d2c (patch) | |
tree | 9b93c7b5394a939266ec4047c7b02ca3218bb180 | |
parent | 72194ceededdf9472b2f8398581fa5aeb6a20cc1 (diff) | |
parent | 0610c77e43eeae135ca0ea14eb5deab3762fe7dc (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.cpp | 3 |
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; |