From 9714a36e65a1caa848305531d5200ec5c5104141 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 6 Aug 2016 20:13:27 -0300 Subject: Reverted printable null object, seems to cause bugs around and not sure why. Will have to check better, likely for 3.0 --- tools/editor/create_dialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/editor/create_dialog.cpp b/tools/editor/create_dialog.cpp index 3ab2e35242..e906976c13 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; } -- cgit v1.2.3