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

Fix editor crash after closing scene with certain types of nodes

Franklin Sobrinho преди 9 години
родител
ревизия
868832bca7
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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;
 	}