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 21c4fe2117 - Show all commits

View File

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