浏览代码

Fix editor crash when creating a custom resource from create dialog

Andrii Doroshenko (Xrayez) 5 年之前
父节点
当前提交
b399097ecc
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      editor/create_dialog.cpp

+ 0 - 1
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);
 		}