Merge pull request #25712 from QbieShay/issue_25609

Root node of a scene is now selected when the scene is opened.
This commit is contained in:
Rémi Verschelde 2019-02-09 18:22:28 +01:00 committed by GitHub
commit ae1ac55409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2972,6 +2972,7 @@ Error EditorNode::load_scene(const String &p_scene, bool p_ignore_broken_deps, b
prev_scene->set_disabled(previous_scenes.size() == 0); prev_scene->set_disabled(previous_scenes.size() == 0);
opening_prev = false; opening_prev = false;
scene_tree_dock->set_selected(new_scene);
ScriptEditor::get_singleton()->get_debugger()->update_live_edit_root(); ScriptEditor::get_singleton()->get_debugger()->update_live_edit_root();