summaryrefslogtreecommitdiff
path: root/editor/create_dialog.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-06-27 14:56:53 +0200
committerGitHub <noreply@github.com>2022-06-27 14:56:53 +0200
commitc41e4b10c3317f837d4b3ece2fb725a8067d884b (patch)
tree922ae58c2db391e23e68d3e6598966649a06deef /editor/create_dialog.cpp
parent1c7971d11c2fa9460d8e22832aa719da8907c847 (diff)
parenta08d9307403e6674af7ef0a2aa01bd32029c0f30 (diff)
Merge pull request #61954 from KoBeWi/scene_factory🏭
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r--editor/create_dialog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index 3469e96a0a..31c169a0fb 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -474,6 +474,13 @@ void CreateDialog::select_type(const String &p_type, bool p_center_on_item) {
get_ok_button()->set_disabled(false);
}
+void CreateDialog::select_base() {
+ if (search_options_types.is_empty()) {
+ _update_search();
+ }
+ select_type(base_type, false);
+}
+
String CreateDialog::get_selected_type() {
TreeItem *selected = search_options->get_selected();
if (!selected) {