소스 검색

Don't save scripts when exiting editor

kobewi 2 년 전
부모
커밋
97bd6c0539
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      editor/plugins/script_editor_plugin.cpp

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