bone space in context menu

This commit is contained in:
ChristopheSeux
2024-02-28 09:59:11 +01:00
parent 150bae5920
commit 75bc414e26
6 changed files with 27 additions and 13 deletions
+2 -2
View File
@@ -459,7 +459,7 @@ class Picker:
if shape.type == 'bone' and shape.hover:
shape.assign_bone_event()
bpy.ops._rigpicker.save_picker(index=self.index)
bpy.ops.rigpicker.save_picker(index=self.index)
def press_event(self, mode='SET'):
for shape in self.shapes:
@@ -712,7 +712,7 @@ class PickerGroup:
def load_picker_data(rig):
if 'pickers' in rig.data.rig_picker:
picker_datas = [p.to_dict() for p in rig.rig_picker['pickers']]
picker_datas = [[s.to_dict() for s in p] for p in rig.data.rig_picker['pickers']]
else:
picker_datas = []
+1 -1
View File
@@ -93,7 +93,7 @@ def get_shape_data(ob, matrix=None, depsgraph=None):
for vert in mesh.vertices:
co = matrix @ (ob.matrix_world @ Vector(vert.co))
points.append([round(co[0]), round(co[1])])
points.append([round(co[0], 1), round(co[1], 1)])
depths += [co[2]]