Browse Source

Merge pull request #5479 from volzhs/fix-show-main-panel

Fix main(2D, 3D, Script) panel not updated when start up and select f…
Juan Linietsky 9 years ago
parent
commit
119cd5d3ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/editor/editor_node.cpp

+ 1 - 1
tools/editor/editor_node.cpp

@@ -3431,7 +3431,7 @@ Dictionary EditorNode::_get_main_scene_state() {
 
 
 void EditorNode::_set_main_scene_state(Dictionary p_state,Node* p_for_scene) {
 void EditorNode::_set_main_scene_state(Dictionary p_state,Node* p_for_scene) {
 
 
-	if (get_edited_scene()!=p_for_scene)
+	if (get_edited_scene()!=p_for_scene && p_for_scene!=NULL)
 		return; //not for this scene
 		return; //not for this scene
 
 
 	//print_line("set current 7 ");
 	//print_line("set current 7 ");