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:
parent
2c0fe87fba
commit
aceea0d823
@ -3,6 +3,10 @@
|
|||||||
This file logs the changes that are actually interesting to users (new features,
|
This file logs the changes that are actually interesting to users (new features,
|
||||||
changed functionality, fixed bugs).
|
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)
|
# 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)).
|
- Add support for Blender 5.0 compositor node trees ([16c208bc8e13](https://projects.blender.org/blender/blender-asset-tracer/commit/16c208bc8e130c8b1233bdb411ecabdab19af3c5)).
|
||||||
|
|||||||
@ -119,6 +119,7 @@ def image(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]
|
|||||||
|
|
||||||
|
|
||||||
@dna_code("LI")
|
@dna_code("LI")
|
||||||
|
@skip_packed
|
||||||
def library(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]:
|
def library(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]:
|
||||||
"""Library data blocks."""
|
"""Library data blocks."""
|
||||||
path, field = block.get(b"name", return_field=True)
|
path, field = block.get(b"name", return_field=True)
|
||||||
|
|||||||
BIN
tests/blendfiles/74871-packed-libraries.blend
Normal file
BIN
tests/blendfiles/74871-packed-libraries.blend
Normal file
Binary file not shown.
@ -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):
|
def test_deps_recursive(self):
|
||||||
self.assert_deps(
|
self.assert_deps(
|
||||||
"doubly_linked.blend",
|
"doubly_linked.blend",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user