From 7d2216bc3bd5c78e386e0501a525d5cbdf6c5f01 Mon Sep 17 00:00:00 2001 From: "florentin.luce" Date: Tue, 10 Jun 2025 15:23:19 +0200 Subject: [PATCH] get picker collection since rig is stored on the picker collection and not on the scene --- operators/shape.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/operators/shape.py b/operators/shape.py index d4e478c..eedf141 100644 --- a/operators/shape.py +++ b/operators/shape.py @@ -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: