From 88eefcf6bc04e7a755b9015141f503aacb36a009 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 8 Jun 2015 23:47:01 +1000 Subject: [PATCH] check source mode before including alembic files --- bam/blend/blendfile_path_walker.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bam/blend/blendfile_path_walker.py b/bam/blend/blendfile_path_walker.py index df760f2..b38728d 100644 --- a/bam/blend/blendfile_path_walker.py +++ b/bam/blend/blendfile_path_walker.py @@ -58,6 +58,10 @@ class C_defs: # Object.transflag OB_DUPLIGROUP = 1 << 8 + if USE_ALEMBIC_BRANCH: + CACHE_LIBRARY_SOURCE_CACHE = 1 + + if VERBOSE: import logging log_deps = logging.getLogger("path_walker") @@ -564,7 +568,8 @@ class FilePath: if USE_ALEMBIC_BRANCH: @staticmethod def _from_block_CL(block, basedir, extra_info, level): - yield FPElem_block_path(basedir, level, (block, b'input_filepath')), extra_info + if block[b'source_mode'] == C_defs.CACHE_LIBRARY_SOURCE_CACHE: + yield fpelem_block_path(basedir, level, (block, b'input_filepath')), extra_info @staticmethod def _from_block_SC(block, basedir, extra_info, level):