Explorar el Código

Fix editor crash after closing scene with certain types of nodes

Franklin Sobrinho hace 9 años
padre
commit
868832bca7
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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;
 	}