Fix IES lights asset tracing

Fix an issue where BAT failed with a `KeyError` (because it couldn't
find the `filepath` property) when handling IES light files.

Also add example files & unit tests.

Reviewed-on: https://projects.blender.org/blender/blender-asset-tracer/pulls/92886
This commit is contained in:
Olivier Charvin
2024-01-11 16:34:28 +01:00
committed by Sybren A. Stüvel
parent 15f00e6c92
commit 44d1d2ff90
10 changed files with 1913 additions and 1 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ def lamp(block: blendfile.BlendFileBlock) -> typing.Iterator[result.BlockUsage]:
if path is None:
continue
yield result.BlockUsage(block, path, path_full_field=field)
yield result.BlockUsage(storage, path, path_full_field=field)
@dna_code("VO")