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:
Rémi Verschelde 2020-07-06 13:41:41 +02:00 committed by GitHub
commit b43fb407b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -425,7 +425,6 @@ Object *CreateDialog::instance_selected() {
if (n) {
n->set_name(custom);
}
obj = n;
} else {
obj = EditorNode::get_editor_data().instance_custom_type(selected->get_text(0), custom);
}