From 97bd6c05396bc2fb71f858e0ebd4cba4b4327499 Mon Sep 17 00:00:00 2001 From: kobewi Date: Mon, 20 Feb 2023 19:29:20 +0100 Subject: [PATCH] Don't save scripts when exiting editor --- editor/plugins/script_editor_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index ccbc7c3d749..39030be44ab 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -4058,7 +4058,9 @@ void ScriptEditorPlugin::selected_notify() { } void ScriptEditorPlugin::save_external_data() { - script_editor->save_all_scripts(); + if (!EditorNode::get_singleton()->is_exiting()) { + script_editor->save_all_scripts(); + } } void ScriptEditorPlugin::apply_changes() {