summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-06 13:41:41 +0200
committerGitHub <noreply@github.com>2020-07-06 13:41:41 +0200
commitb43fb407b1fe214ffbe7e8bcd1432f291ac695e5 (patch)
tree1885df084b50642bd0a75b0f15e922cc487fc72d /editor
parenta8e330ea1974f0bc692f7efac0165142d4b01de8 (diff)
parentb399097eccd28dd9813ab3d4a9f96835852c37e4 (diff)
Merge pull request #40156 from Xrayez/fix-resource-create-crash
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);
}