From 0e2d6fe1a2812b873ee95153b90b56258b93a244 Mon Sep 17 00:00:00 2001 From: Ma Nan Date: Fri, 31 May 2024 13:36:47 +0800 Subject: [PATCH] fix: cannot convert to mesh in chinese language blender --- bioxelnodes/operators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bioxelnodes/operators.py b/bioxelnodes/operators.py index 40f17fc..49d5cb3 100644 --- a/bioxelnodes/operators.py +++ b/bioxelnodes/operators.py @@ -196,7 +196,7 @@ def execute(self, context): mesh.name = f"Mesh_{container.name}" bpy.ops.object.constraint_add(type='COPY_TRANSFORMS') - mesh.constraints["Copy Transforms"].target = container + mesh.constraints[0].target = container bpy.ops.node.new_geometry_nodes_modifier() modifier = mesh.modifiers[0]