diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-07-21 17:15:14 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-07-21 17:15:14 +0200 |
commit | bf73ac28915e6a050d89206133db08ef60e70d9e (patch) | |
tree | 531e4aabef98e8e4315e1073630a174469ebdb76 | |
parent | f8dbed4d0aef09ae7f4e3d66213268dba23a31d6 (diff) | |
parent | 97bd6c05396bc2fb71f858e0ebd4cba4b4327499 (diff) | |
download | redot-engine-bf73ac28915e6a050d89206133db08ef60e70d9e.tar.gz |
Merge pull request #73641 from KoBeWi/yolo_exiting
Don't save scripts when exiting editor
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
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() { |