From b399097eccd28dd9813ab3d4a9f96835852c37e4 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Mon, 6 Jul 2020 13:53:02 +0300 Subject: Fix editor crash when creating a custom resource from create dialog --- editor/create_dialog.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'editor') 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); } -- cgit v1.2.3