Compare commits
3 Commits
30064faf3d
...
c7df358fe8
Author | SHA1 | Date | |
---|---|---|---|
c7df358fe8 | |||
|
21c4fe2117 | ||
|
f35fbb95b8 |
@ -48,11 +48,10 @@ class RP_OT_create_shape(Operator):
|
|||||||
|
|
||||||
mesh.from_pydata(verts, edges, faces)
|
mesh.from_pydata(verts, edges, faces)
|
||||||
|
|
||||||
for col in bpy.data.collections:
|
picker_selected_cols = [col for col in bpy.data.collections if col.rig_picker.link_shape]
|
||||||
if col.rig_picker.link_shape:
|
|
||||||
|
for col in picker_selected_cols or [scn.collection]:
|
||||||
col.objects.link(ob)
|
col.objects.link(ob)
|
||||||
else:
|
|
||||||
scn.collection.objects.link(ob)
|
|
||||||
|
|
||||||
ob.location.z = 0.05
|
ob.location.z = 0.05
|
||||||
ob.location.x = offset
|
ob.location.x = offset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user