diff --git a/blender_asset_tracer/tracer/__init__.py b/blender_asset_tracer/tracer/__init__.py index 5fe8444..2fd3380 100644 --- a/blender_asset_tracer/tracer/__init__.py +++ b/blender_asset_tracer/tracer/__init__.py @@ -13,6 +13,7 @@ codes_to_skip = { def deps(bfilepath: pathlib.Path) -> typing.Iterator[result.BlockUsage]: + """Open the blend file and report its dependencies.""" log.info('Tracing %s', bfilepath) with blendfile.BlendFile(bfilepath) as bfile: @@ -23,6 +24,7 @@ def deps(bfilepath: pathlib.Path) -> typing.Iterator[result.BlockUsage]: def asset_holding_blocks(bfile: blendfile.BlendFile) -> typing.Iterator[blendfile.BlendFileBlock]: + """Generator, yield data blocks that could reference external assets.""" for block in bfile.blocks: assert isinstance(block, blendfile.BlendFileBlock) code = block.code