Fix: Sync built-in script memory before signal connection

This commit is contained in:
tomasciviero 2026-01-20 19:15:59 -03:00
parent aa094e93e3
commit 346150a9ff

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;