From 419249ee19ac3b175488751801db03ecb41f79a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 27 Nov 2018 16:40:05 +0100 Subject: [PATCH] Flamenco: Compress all blend files All blend files in the BAT pack are now compressed, and not just the one we save from Blender. Requires BAT 0.5 or newer. --- CHANGELOG.md | 2 ++ blender_cloud/flamenco/bat_interface.py | 2 +- requirements.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6efdeda..30d9100 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ - Fix crashing Blender when running in background mode (e.g. without GUI). - Flamenco: Include extra job parameters to allow for encoding a video at the end of a render job that produced an image sequence. +- Flamenco: Compress all blend files, and not just the one we save from Blender. + Requires BAT 0.5 or newer. ## Version 1.9.4 (2018-11-01) diff --git a/blender_cloud/flamenco/bat_interface.py b/blender_cloud/flamenco/bat_interface.py index a2516a8..e022a0e 100644 --- a/blender_cloud/flamenco/bat_interface.py +++ b/blender_cloud/flamenco/bat_interface.py @@ -109,7 +109,7 @@ async def copy(context, wm = bpy.context.window_manager - with pack.Packer(base_blendfile, project, target) as packer: + with pack.Packer(base_blendfile, project, target, compress=True) as packer: with _packer_lock: if exclusion_filter: packer.exclude(*exclusion_filter.split()) diff --git a/requirements.txt b/requirements.txt index 45ea3e2..7368d25 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ lockfile==0.12.2 pillarsdk==1.7.0 wheel==0.29.0 -blender-asset-tracer>=0.4 +blender-asset-tracer>=0.5 # Secondary requirements: asn1crypto==0.24.0