From 87d27bb9974bd5b81933fb4a893d0d05d9564298 Mon Sep 17 00:00:00 2001 From: marynate Date: Sun, 18 May 2014 17:56:08 +0800 Subject: [PATCH] Fixed when opening sub-scene by pressing sub-scene icon in scene tree, tab changed to script tab --- tools/editor/editor_node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 9c116448de7..a86cdbfeb58 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -2730,10 +2730,10 @@ Error EditorNode::load_scene(const String& p_scene) { } */ set_edited_scene(new_scene); - scene_tree_dock->set_selected(new_scene); + _get_scene_metadata(); + scene_tree_dock->set_selected(new_scene, true); property_editor->edit(new_scene); scene_import_metadata = sdata->get_import_metadata(); - _get_scene_metadata(); editor_data.get_undo_redo().clear_history(); saved_version=editor_data.get_undo_redo().get_version();