浏览代码

Merge pull request #73641 from KoBeWi/yolo_exiting

Don't save scripts when exiting editor
Yuri Sizov 2 年之前
父节点
当前提交
bf73ac2891
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      editor/plugins/script_editor_plugin.cpp

+ 3 - 1
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() {