Skip to content

Commit

Permalink
Merge pull request #73641 from KoBeWi/yolo_exiting
Browse files Browse the repository at this point in the history
Don't save scripts when exiting editor
  • Loading branch information
YuriSizov committed Jul 21, 2023
2 parents f8dbed4 + 97bd6c0 commit bf73ac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/plugins/script_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit bf73ac2

Please sign in to comment.