bone space in context menu
This commit is contained in:
+2
-2
@@ -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
@@ -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]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user