mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Reverted printable null object, seems to cause bugs around and not sure why.
Will have to check better, likely for 3.0
This commit is contained in:
parent
9890c1d2ca
commit
9714a36e65
3 changed files with 7 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue