Skip to content

Commit

Permalink
blender addon: make sure .blend files aren't saved in compressed form. (
Browse files Browse the repository at this point in the history
Fixes #113)
  • Loading branch information
indyjo committed Aug 17, 2015
1 parent b0152e6 commit 87bdd2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitwrk-blender/render_bitwrk.py
Expand Up @@ -689,7 +689,7 @@ def save_copy(filepath):
save_as_mainfile(copy=True) messes up filepaths, so we need to restore them afterwards."""
if BUG_SAVE_AS_COPY:
saved = save_filepaths()
bpy.ops.wm.save_as_mainfile(filepath=filepath, check_existing=False, copy=True, relative_remap=True)
bpy.ops.wm.save_as_mainfile(filepath=filepath, check_existing=False, copy=True, relative_remap=True, compress=False)
if BUG_SAVE_AS_COPY:
restore_filepaths(saved)

Expand Down Expand Up @@ -793,7 +793,7 @@ def unregister():
if len(args) > 0 and args[0] == 'process':
repath()
remove_scripted_drivers()
bpy.ops.wm.save_as_mainfile(filepath=bpy.data.filepath, check_existing=False)
bpy.ops.wm.save_as_mainfile(filepath=bpy.data.filepath, check_existing=False, compress=False)
except:
traceback.print_exc()
sys.exit(-1)

0 comments on commit 87bdd2f

Please sign in to comment.