You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix editor crash when creating a custom resource from create dialog
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user