summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2020-07-06 13:53:02 +0300
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2020-07-06 13:53:02 +0300
commitb399097eccd28dd9813ab3d4a9f96835852c37e4 (patch)
tree1885df084b50642bd0a75b0f15e922cc487fc72d /editor
parenta8e330ea1974f0bc692f7efac0165142d4b01de8 (diff)
Fix editor crash when creating a custom resource from create dialog
Diffstat (limited to 'editor')
-rw-r--r--editor/create_dialog.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index a1bc7a9522..99a2a73a75 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -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);
}