1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Don't save built-in script when adding method

(cherry picked from commit a97546d4ea)
This commit is contained in:
kobewi
2021-06-06 23:58:35 +02:00
committed by Rémi Verschelde
parent 8b09112d5f
commit 117e037235

View File

@@ -2291,7 +2291,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;
}