1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

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

View File

@@ -154,6 +154,9 @@ void CreateDialog::_update_search() {
TreeItem *root = search_options->create_item(); TreeItem *root = search_options->create_item();
root->set_text(0,base_type); 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(); List<StringName>::Element *I=type_list.front();
TreeItem *to_select=NULL; TreeItem *to_select=NULL;