Ver Fonte

Fix editor crash when creating a custom resource from create dialog

Andrii Doroshenko (Xrayez) há 5 anos atrás
pai
commit
b399097ecc
1 ficheiros alterados com 0 adições e 1 exclusões
  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);
 		}