fix: shape geometry link behavior. #2

Merged
jonas.holzman merged 2 commits from swann.martinez/rig_picker:fix-collection-link-for-create-shape into master 2025-06-27 16:17:09 +02:00
Showing only changes of commit f35fbb95b8 - Show all commits

View File

@ -48,11 +48,10 @@ class RP_OT_create_shape(Operator):
mesh.from_pydata(verts, edges, faces)
for col in bpy.data.collections:
if col.rig_picker.link_shape:
col.objects.link(ob)
else:
scn.collection.objects.link(ob)
picker_cols = [col for col in bpy.data.collections if col.rig_picker.link_shape]
for col in picker_cols or [scn.collection]:
col.objects.link(ob)
ob.location.z = 0.05
ob.location.x = offset