diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-13 11:52:14 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-13 11:57:05 +0300 |
commit | 8cdf76fad970cf154e029a71de7ab2dff8a68f49 (patch) | |
tree | ca134ea1dc84441716e9273d47172a6fa2c64874 /source/blender/windowmanager/intern/wm_init_exit.c | |
parent | d2efdaa26cad2e493c44b7e9305db145863b4fae (diff) |
Fix unintended autosaving of preferences in a few cases
* Dirty flag was not cleared on load
* Navigating tabs should not cause save
* Background mode should not autosave (for e.g. render farms and tests)
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 9abfa657536..797a2edd937 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -475,7 +475,7 @@ void WM_exit_ext(bContext *C, const bool do_python) ED_screen_exit(C, win, WM_window_get_active_screen(win)); } - if (U.runtime.is_dirty) { + if (U.runtime.is_dirty && !G.background) { if (U.pref_flag & USER_PREF_FLAG_SAVE) { BKE_blendfile_userdef_write_all(NULL); } |