summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index d7f197b569..e8a0b77184 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -4073,11 +4073,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()) {