diff options
author | George Marques <george@gmarqu.es> | 2016-07-18 12:39:51 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2016-07-18 12:39:59 -0300 |
commit | 0610c77e43eeae135ca0ea14eb5deab3762fe7dc (patch) | |
tree | 9b93c7b5394a939266ec4047c7b02ca3218bb180 /tools/editor | |
parent | 72194ceededdf9472b2f8398581fa5aeb6a20cc1 (diff) |
Add icon for root node in Create Dialog
Close #5766
Diffstat (limited to 'tools/editor')
-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; |