Add support for Open VDB #92884
@ -234,3 +234,15 @@ def lamp(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]:
|
||||
continue
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user