Prevent G.fileflags changes when WM_OT_save_mainfile() is called from script
authorSybren A. Stüvel <sybren@stuvel.eu>
Fri, 12 Oct 2018 08:24:07 +0000 (10:24 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Fri, 12 Oct 2018 08:24:25 +0000 (10:24 +0200)
commitcd3b313d5f44a10a1150bf1ddb560775d1bcd827
treee1c86c69ea0652da8c99eee9ab278a08a3c06c86
parent5eeb6c00be8de7db5608d6831a0d88bd39611771
Prevent G.fileflags changes when WM_OT_save_mainfile() is called from script

This is to solve an issue where a blend file could be compressed
unbeknownst to the artist. This happened in the following situtation:

- Artist edits an uncompressed blend file.
- Some script saves a compressed blendfile to a separate location.
- When the artist saves the file (s)he is editing (File>Save, or Ctrl+S),
  it was silently compressed.
source/blender/windowmanager/intern/wm_files.c