Add Support for Geometry Node Cache #92890

Open
Jonas Dichelle wants to merge 14 commits from JonasDichelle/blender-asset-tracer:geonodes_support into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 6160c422b0 - Show all commits

View File

@ -376,9 +376,11 @@ def modifier_nodes(
if use_custom_directory: if use_custom_directory:
directory_ptr = bake_directory_ptr directory_ptr = bake_directory_ptr
field = bake_directory_field field = bake_directory_field
block = bake
else: else:
directory_ptr = mod_directory_ptr directory_ptr = mod_directory_ptr
field = mod_directory_field field = mod_directory_field
block = modifier
if directory_ptr == 0: if directory_ptr == 0:
JonasDichelle marked this conversation as resolved

I think it's slightly nicer to not compare to a concrete value, and just use if not directory_ptr:

I think it's slightly nicer to not compare to a concrete value, and just use `if not directory_ptr:`
continue continue
@ -390,7 +392,7 @@ def modifier_nodes(
bake_block_name = block_name + b".bakes[%d]" % bake_idx bake_block_name = block_name + b".bakes[%d]" % bake_idx
yield result.BlockUsage( yield result.BlockUsage(
modifier, block,
bpath, bpath,
block_name=bake_block_name, block_name=bake_block_name,
path_full_field=field, path_full_field=field,