Merge pull request #115196 from tciviero/fix/builtin-script-reload

Fix: Sync built-in script memory before signal connection
This commit is contained in:
Thaddeus Crews 2026-02-20 17:22:48 -06:00
commit 56f31e34b6
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -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;