Fix: Sync built-in script memory before signal connection

This commit is contained in:
tomasciviero committed 2026-02-19 23:05:47 -03:00
1 parent aa094e93e3
commit 346150a9ff
1 file changed
+3
+3
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;