Prevent G.fileflags changes when WM_OT_save_mainfile() is called from script
authorCampbell Barton <ideasman42@gmail.com>
Mon, 22 Oct 2018 04:08:26 +0000 (15:08 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 22 Oct 2018 04:08:26 +0000 (15:08 +1100)
commit24162c977c2aac79690fa421289a146c0f2677c8
tree5b2d8914569f148ffb203373988e9464cd8fcfed
parent64a6c78a9a2a789b5be6ba5e3162a10f90a2ac5c
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.

Cherry pick from: cd3b313d5f44a10a1150bf1ddb560775d1bcd827
source/blender/windowmanager/intern/wm_files.c