diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index c5cfea0b953..641993bf057 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -203,7 +203,7 @@ void CreateDialog::_update_search() { } List::Element *I = type_list.front(); - TreeItem *to_select = NULL; + TreeItem *to_select = search_box->get_text() == base_type ? root : NULL; for (; I; I = I->next()) {