Add Support for Geometry Node Cache #92890
@ -376,9 +376,11 @@ def modifier_nodes(
|
||||
if use_custom_directory:
|
||||
directory_ptr = bake_directory_ptr
|
||||
field = bake_directory_field
|
||||
block = bake
|
||||
else:
|
||||
directory_ptr = mod_directory_ptr
|
||||
field = mod_directory_field
|
||||
block = modifier
|
||||
|
||||
if directory_ptr == 0:
|
||||
JonasDichelle marked this conversation as resolved
|
||||
continue
|
||||
@ -390,7 +392,7 @@ def modifier_nodes(
|
||||
bake_block_name = block_name + b".bakes[%d]" % bake_idx
|
||||
|
||||
yield result.BlockUsage(
|
||||
modifier,
|
||||
block,
|
||||
bpath,
|
||||
block_name=bake_block_name,
|
||||
path_full_field=field,
|
||||
|
Loading…
Reference in New Issue
Block a user
I think it's slightly nicer to not compare to a concrete value, and just use
if not directory_ptr: