get picker collection since rig is stored on the picker collection and not on the scene
This commit is contained in:
parent
b4defc1296
commit
7d2216bc3b
@ -63,8 +63,8 @@ class RP_OT_name_from_bone(Operator):
|
||||
#bl_options = {'REGISTER', 'UNDO'}
|
||||
|
||||
def execute(self,context):
|
||||
scene = context.scene
|
||||
rig = scene.rig_picker.rig
|
||||
col = get_picker_collection(context.object)
|
||||
rig = col.rig_picker.rig
|
||||
bone = rig.data.bones.active
|
||||
|
||||
if bone:
|
||||
@ -84,9 +84,7 @@ class RP_OT_mirror_shape(Operator):
|
||||
return (context.object and context.object.type in ('MESH', 'CURVE', 'TEXT'))
|
||||
|
||||
def execute(self,context):
|
||||
scn = context.scene
|
||||
ob = context.object
|
||||
collection = get_picker_collection(ob)
|
||||
collection = get_picker_collection(context.object)
|
||||
objects = context.selected_objects
|
||||
|
||||
# Remove mirror object:
|
||||
|
Loading…
x
Reference in New Issue
Block a user