Add support for Open VDB #92884

Manually merged
Sybren A. Stüvel merged 4 commits from oliverpool/blender-asset-tracer:external_vdb into main 2024-01-02 16:36:53 +01:00
2 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,7 @@ changed functionality, fixed bugs).
# Version 1.18 (in development)
- When logging that there is no reader implemented for a certain data-block type, the filepath of the blend file that contains that data-block is now included in the message ([#92885](https://projects.blender.org/blender/blender-asset-tracer/pulls/92885)).
- Add support for tracing OpenVDB files ([#92884](https://projects.blender.org/blender/blender-asset-tracer/pulls/92884)).
# Version 1.17 (2023-12-14)

View File

@ -245,3 +245,13 @@ def lamp(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]:
continue
yield result.BlockUsage(block, path, path_full_field=field)
@dna_code("VO")
@skip_packed
def open_vdb(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]:
"""OpenVDB data blocks."""
path, field = block.get(b"filepath", return_field=True)
is_sequence = bool(block.get(b"is_sequence"))
yield result.BlockUsage(block, path, path_full_field=field, is_sequence=is_sequence)