mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix editor crash when creating a custom resource from create dialog
This commit is contained in:
parent
a8e330ea19
commit
b399097ecc
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user