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 1 additions and 1 deletions
Showing only changes of commit 041c4106bf - Show all commits

View File

@ -2120,7 +2120,7 @@ static bool wm_autosave_write_try(Main *bmain, wmWindowManager *wm)
BLO_memfile_write_file(memfile, filepath);
return true;
}
if ((U.uiflag & USER_GLOBALUNDO) != 0) {
if ((U.uiflag & USER_GLOBALUNDO) == 0) {
/* Save as regular blend file with recovery information. */
const int fileflags = (G.fileflags & ~G_FILE_COMPRESS) | G_FILE_RECOVER_WRITE;