Fixed when opening sub-scene by pressing sub-scene icon in scene tree, tab changed to script tab

This commit is contained in:
marynate 2014-05-18 17:56:08 +08:00
parent 77a15e2a3e
commit 87d27bb997

View file

@ -2730,10 +2730,10 @@ Error EditorNode::load_scene(const String& p_scene) {
} }
*/ */
set_edited_scene(new_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); property_editor->edit(new_scene);
scene_import_metadata = sdata->get_import_metadata(); scene_import_metadata = sdata->get_import_metadata();
_get_scene_metadata();
editor_data.get_undo_redo().clear_history(); editor_data.get_undo_redo().clear_history();
saved_version=editor_data.get_undo_redo().get_version(); saved_version=editor_data.get_undo_redo().get_version();