diff --git a/CHANGELOG.md b/CHANGELOG.md index 9024d96..82bdc32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This file logs the changes that are actually interesting to users (new features, changed functionality, fixed bugs). +# Version 1.21 (in development) + +- Skip packed blend files. BAT will assume that the packed file is self-contained, i.e. any asset used by a packed blend file should also be packed. + # Version 1.20 (2025-07-11) - Add support for Blender 5.0 compositor node trees ([16c208bc8e13](https://projects.blender.org/blender/blender-asset-tracer/commit/16c208bc8e130c8b1233bdb411ecabdab19af3c5)). diff --git a/blender_asset_tracer/trace/blocks2assets.py b/blender_asset_tracer/trace/blocks2assets.py index 88a4132..48727bf 100644 --- a/blender_asset_tracer/trace/blocks2assets.py +++ b/blender_asset_tracer/trace/blocks2assets.py @@ -119,6 +119,7 @@ def image(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage] @dna_code("LI") +@skip_packed def library(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]: """Library data blocks.""" path, field = block.get(b"name", return_field=True) diff --git a/tests/blendfiles/74871-packed-libraries.blend b/tests/blendfiles/74871-packed-libraries.blend new file mode 100644 index 0000000..2ac2994 Binary files /dev/null and b/tests/blendfiles/74871-packed-libraries.blend differ diff --git a/tests/test_tracer.py b/tests/test_tracer.py index 3ad6600..04cbc2a 100644 --- a/tests/test_tracer.py +++ b/tests/test_tracer.py @@ -370,6 +370,10 @@ class DepsTest(AbstractTracerTest): }, ) + def test_block_li_packed(self): + # Packed libraries should not be traced. + self.assert_deps("74871-packed-libraries.blend", {}) + def test_deps_recursive(self): self.assert_deps( "doubly_linked.blend",