diff --git a/rigify/ui.py b/rigify/ui.py index 35d3bb6cf79121c2bb58777710f2ed5c8e89fff6..c2e1e6c6befa27399952478dcd3291b24349a66f 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -203,7 +203,7 @@ class VIEW3D_PT_tools_rigify_dev(bpy.types.Panel): @classmethod def poll(cls, context): - return obj.mode == 'EDIT_ARMATURE' + return (context.mode == 'EDIT_ARMATURE') def draw(self, context): r = self.layout.row()