diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-15 05:30:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-15 06:48:17 +0300 |
commit | 88b24bc6bbbf35bde00c55834330b56708f25897 (patch) | |
tree | e236a0d29251c5f83d92c67ee3e577c4dde1516c /source/blender/windowmanager | |
parent | d3b4ff6eaa1cb155adf4b2aad4775746bc3ca6df (diff) |
Writefile: only include recovery info in auto-save & quit.blend
Previously all blend files included the path they were saved,
causing files distributed publicly to include users local paths.
This also included developers home directories for startup & userprefs
defaults & app-templates bundled with Blender.
Now recovery information is only written for auto-save & quit.blend
since this is the only time they're intended to be used.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 40b32665f4b..ba40676d4cf 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -1682,8 +1682,8 @@ void wm_autosave_timer(Main *bmain, wmWindowManager *wm, wmTimer *UNUSED(wt)) } } else { - /* Save as regular blend file. */ - const int fileflags = G.fileflags & ~G_FILE_COMPRESS; + /* Save as regular blend file with recovery information. */ + const int fileflags = (G.fileflags & ~G_FILE_COMPRESS) | G_FILE_RECOVER_WRITE; ED_editors_flush_edits(bmain); |