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
Showing only changes of commit de1cc09f5b - Show all commits

View File

@ -245,3 +245,15 @@ def lamp(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]:
continue continue
yield result.BlockUsage(block, path, path_full_field=field) yield result.BlockUsage(block, path, path_full_field=field)
@dna_code("VO")
# See the discussion https://projects.blender.org/blender/blender-asset-tracer/pulls/92884 for the reasons to
# comment out the skip_packed decorator.
# @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)