diff options
| author | Juan Linietsky | 2016-08-06 20:13:27 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-08-06 20:13:27 -0300 |
| commit | 9714a36e65a1caa848305531d5200ec5c5104141 (patch) | |
| tree | 22cbed48ed5a909a6fd296056256783ea035da83 /tools/editor/create_dialog.cpp | |
| parent | 9890c1d2ca76dc936e23f5263a4fd296bfc68996 (diff) | |
| download | godot-9714a36e65a1caa848305531d5200ec5c5104141.tar.gz godot-9714a36e65a1caa848305531d5200ec5c5104141.tar.zst godot-9714a36e65a1caa848305531d5200ec5c5104141.zip | |
Diffstat (limited to 'tools/editor/create_dialog.cpp')
| -rw-r--r-- | tools/editor/create_dialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp index 3ab2e3524..e906976c1 100644 --- a/tools/editor/create_dialog.cpp +++ b/tools/editor/create_dialog.cpp @@ -292,9 +292,12 @@ String CreateDialog::get_selected_type() { Object *CreateDialog::instance_selected() { TreeItem *selected = search_options->get_selected(); + if (selected) { String custom = selected->get_metadata(0); + + if (custom!=String()) { if (EditorNode::get_editor_data().get_custom_types().has(custom)) { @@ -323,6 +326,7 @@ Object *CreateDialog::instance_selected() { } } + print_line("NONE"); return NULL; } |
