Changeset View
Changeset View
Standalone View
Standalone View
blender_asset_tracer/trace/modifier_walkers.py
| Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | if pointcache is None: | ||||
| return | return | ||||
| format = domain.get(b'cache_file_format') | format = domain.get(b'cache_file_format') | ||||
| extensions = { | extensions = { | ||||
| cdefs.PTCACHE_FILE_PTCACHE: cdefs.PTCACHE_EXT, | cdefs.PTCACHE_FILE_PTCACHE: cdefs.PTCACHE_EXT, | ||||
| cdefs.PTCACHE_FILE_OPENVDB: cdefs.PTCACHE_EXT_VDB | cdefs.PTCACHE_FILE_OPENVDB: cdefs.PTCACHE_EXT_VDB | ||||
| } | } | ||||
| yield from _walk_point_cache(ctx, block_name, modifier.bfile, pointcache, extensions[format]) | yield from _walk_point_cache(ctx, block_name, modifier.bfile, pointcache, extensions[format]) | ||||
| @mod_handler(cdefs.eModifierType_Cloth) | |||||
| def modifier_cloth(ctx: ModifierContext, modifier: blendfile.BlendFileBlock, block_name: bytes) \ | |||||
| -> typing.Iterator[result.BlockUsage]: | |||||
| pointcache = modifier.get_pointer(b'point_cache') | |||||
| if pointcache is None: | |||||
| return | |||||
| yield from _walk_point_cache(ctx, block_name, modifier.bfile, pointcache, cdefs.PTCACHE_EXT) | |||||