mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +00:00
Fix selecting root when opening scene.
This commit is contained in:
parent
f91db3dc58
commit
0ab5d37049
2 changed files with 1 additions and 6 deletions
|
|
@ -4055,11 +4055,7 @@ Error EditorNode::load_scene(const String &p_scene, bool p_ignore_broken_deps, b
|
|||
|
||||
EditorDebuggerNode::get_singleton()->update_live_edit_root();
|
||||
|
||||
// Tell everything to edit this object, unless we're in the process of restoring scenes.
|
||||
// If we are, we'll edit it after the restoration is done.
|
||||
if (!restoring_scenes) {
|
||||
push_item(new_scene);
|
||||
} else {
|
||||
if (restoring_scenes) {
|
||||
// Initialize history for restored scenes.
|
||||
ObjectID id = new_scene->get_instance_id();
|
||||
if (id != editor_history.get_current()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue