From 346150a9ff1fd6cf5da804cade5cf79a7ff9b57e Mon Sep 17 00:00:00 2001 From: tomasciviero Date: Tue, 20 Jan 2026 19:15:59 -0300 Subject: [PATCH] Fix: Sync built-in script memory before signal connection --- editor/script/script_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/script/script_editor_plugin.cpp b/editor/script/script_editor_plugin.cpp index ef65c21922..f084092e46 100644 --- a/editor/script/script_editor_plugin.cpp +++ b/editor/script/script_editor_plugin.cpp @@ -2620,6 +2620,9 @@ void ScriptEditor::_add_callback(Object *p_obj, const String &p_function, const // Save the current script so the changes can be picked up by an external editor. if (!scr.ptr()->is_built_in()) { // But only if it's not built-in script. save_current_script(); + } else { + ste->apply_code(); + scr->reload(true); } break;