From bc0ffe15f26ffd6c403fb8d93aef36149b456a16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Tue, 20 Jan 2026 08:13:39 +0200 Subject: [PATCH] Do not update script editor before scene root init. --- editor/script/script_editor_plugin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index 902f76a039b..7ea67402a40 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -1918,8 +1918,10 @@ void ScriptEditor::_notification(int p_what) { } break; case NOTIFICATION_APPLICATION_FOCUS_IN: { - _test_script_times_on_disk(); - _update_modified_scripts_for_external_editor(); + if (is_inside_tree()) { + _test_script_times_on_disk(); + _update_modified_scripts_for_external_editor(); + } } break; } }