Add icon for root node in Create Dialog

Close #5766
This commit is contained in:
George Marques 2016-07-18 12:39:51 -03:00
parent 72194ceede
commit 0610c77e43
No known key found for this signature in database
GPG Key ID: 046BD46A3201E43D

View File

@ -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;