Fix: Sync built-in script memory before signal connection
This commit is contained in:
parent
aa094e93e3
commit
346150a9ff
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue