summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editor/plugins/script_editor_plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 875ad1b96d..78ba26503d 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -4263,7 +4263,9 @@ String ScriptEditorPlugin::get_unsaved_status(const String &p_for_scene) const {
}
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() {