diff --git a/CHANGELOG.md b/CHANGELOG.md index c1bb43d..31d8b4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/blender_asset_tracer/trace/blocks2assets.py b/blender_asset_tracer/trace/blocks2assets.py index be20258..be0d8e4 100644 --- a/blender_asset_tracer/trace/blocks2assets.py +++ b/blender_asset_tracer/trace/blocks2assets.py @@ -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)