Skip tracing 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.
This commit is contained in:
Sybren A. Stüvel 2025-11-24 15:25:25 +01:00
parent 2c0fe87fba
commit aceea0d823
4 changed files with 9 additions and 0 deletions

View File

@ -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)).

View File

@ -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)

Binary file not shown.

View File

@ -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",