aboutsummaryrefslogtreecommitdiff
path: root/editor/create_dialog.cpp
diff options
context:
space:
mode:
authorPoommetee Ketson2017-05-28 12:53:11 +0700
committerPoommetee Ketson2017-05-28 12:53:11 +0700
commit9fb90d7aea70a645bcc3987387f4cd048b8413fe (patch)
tree109dd620180f70bce4ae1f5d5b1d33e37ebbb686 /editor/create_dialog.cpp
parent1525071c28535816b98784f2ad62f9d5ef333654 (diff)
downloadgodot-9fb90d7aea70a645bcc3987387f4cd048b8413fe.tar.gz
godot-9fb90d7aea70a645bcc3987387f4cd048b8413fe.tar.zst
godot-9fb90d7aea70a645bcc3987387f4cd048b8413fe.zip
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r--editor/create_dialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index c5cfea0b9..641993bf0 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -203,7 +203,7 @@ void CreateDialog::_update_search() {
}
List<StringName>::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()) {