Преглед на файлове

Merge pull request #40156 from Xrayez/fix-resource-create-crash

Fix editor crash when creating a custom resource from create dialog
Rémi Verschelde преди 5 години
родител
ревизия
b43fb407b1
променени са 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);
 		}