WM: explicitly skip auto-save when in modes that don't support it #118892

Merged
Jacques Lucke merged 8 commits from JacquesLucke/blender:auto-save-active-memfile into main 2024-02-29 13:15:08 +01:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit c94fc939d0 - Show all commits

View File

@ -2146,6 +2146,10 @@ void WM_autosave_write(wmWindowManager *wm, Main *bmain)
BlendFileWriteParams params{};
BLO_write_file(bmain, filepath, fileflags, &params, nullptr);
/* Restart auto-save timer. */
wm_autosave_timer_end(wm);
wm_autosave_timer_begin(wm);
wm->autosave_scheduled = false;
}