From cd60c11229b7bf04a994ae7ccf7463a3e586dd41 Mon Sep 17 00:00:00 2001 From: volzhs Date: Wed, 29 Jun 2016 14:49:03 +0900 Subject: Fix main(2D, 3D, Script) panel not updated when start up and select from tool button --- tools/editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/editor') diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 9e897a41d9..2bba97251d 100644 --- a/tools/editor/editor_node.cpp +++ b/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) { - if (get_edited_scene()!=p_for_scene) + if (get_edited_scene()!=p_for_scene && p_for_scene!=NULL) return; //not for this scene //print_line("set current 7 "); -- cgit v1.2.3