Don't save built-in script when adding method
This commit is contained in:
parent
cb8244273b
commit
a97546d4ea
1 changed files with 3 additions and 1 deletions
|
@ -2451,7 +2451,9 @@ void ScriptEditor::_add_callback(Object *p_obj, const String &p_function, const
|
|||
script_list->select(script_list->find_metadata(i));
|
||||
|
||||
// Save the current script so the changes can be picked up by an external editor.
|
||||
save_current_script();
|
||||
if (!_is_built_in_script(script.ptr())) { // But only if it's not built-in script.
|
||||
save_current_script();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue