mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix: Geometry Nodes: wrong anonymous attribute lifetimes with fields in geometry bundles
This fixes missing anonymous attributes when a reference to them is stored in a geometry bundle. A regression test that checks for this has been added (it breaks without this change). Pull Request: https://projects.blender.org/blender/blender/pulls/159149
This commit is contained in:
parent
3a7652f7fa
commit
4d3ce6cf62
5 changed files with 21 additions and 9 deletions
|
|
@ -5,10 +5,18 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
import bpy
|
||||
|
||||
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
||||
from modules.mesh_test import BlendFileTest
|
||||
|
||||
if "bake_anonymous_attribute_reference" in bpy.data.filepath:
|
||||
if bpy.app.version_cycle == "alpha":
|
||||
bpy.context.preferences.experimental.use_geometry_bundle = True
|
||||
else:
|
||||
print("Skipped because bundles and closures are still experimental.")
|
||||
sys.exit(0)
|
||||
|
||||
geo_node_test = BlendFileTest("test_object", "expected_object", threshold=1e-4)
|
||||
result = geo_node_test.run_test()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue