Selaa lähdekoodia

Fix editor crash after closing scene with certain types of nodes

Franklin Sobrinho 9 vuotta sitten
vanhempi
commit
868832bca7
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      tools/editor/editor_node.cpp

+ 4 - 0
tools/editor/editor_node.cpp

@@ -1562,6 +1562,10 @@ void EditorNode::_edit_current() {
 		scene_tree_dock->set_selected(NULL);
 		property_editor->edit( NULL );
 		object_menu->set_disabled(true);
+
+		if (editor_plugin_over)
+			editor_plugin_over->make_visible(false);
+
 		return;
 	}