Merge pull request #40156 from Xrayez/fix-resource-create-crash
Fix editor crash when creating a custom resource from create dialog
This commit is contained in:
commit
b43fb407b1
1 changed files with 0 additions and 1 deletions
|
@ -425,7 +425,6 @@ Object *CreateDialog::instance_selected() {
|
||||||
if (n) {
|
if (n) {
|
||||||
n->set_name(custom);
|
n->set_name(custom);
|
||||||
}
|
}
|
||||||
obj = n;
|
|
||||||
} else {
|
} else {
|
||||||
obj = EditorNode::get_editor_data().instance_custom_type(selected->get_text(0), custom);
|
obj = EditorNode::get_editor_data().instance_custom_type(selected->get_text(0), custom);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue