Skip to content
Snippets Groups Projects
Commit d83880c3 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Bone Selection Sets: @classmethod should have cls, not self

The first paramter of a @classmethod should be 'cls'.
parent c88411ff
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ class POSE_MT_create_new_selection_set(Menu): ...@@ -142,7 +142,7 @@ class POSE_MT_create_new_selection_set(Menu):
class PluginOperator(Operator): class PluginOperator(Operator):
@classmethod @classmethod
def poll(self, context): def poll(cls, context):
return (context.object and return (context.object and
context.object.type == 'ARMATURE' and context.object.type == 'ARMATURE' and
context.mode == 'POSE') context.mode == 'POSE')
...@@ -150,7 +150,7 @@ class PluginOperator(Operator): ...@@ -150,7 +150,7 @@ class PluginOperator(Operator):
class NeedSelSetPluginOperator(PluginOperator): class NeedSelSetPluginOperator(PluginOperator):
@classmethod @classmethod
def poll(self, context): def poll(cls, context):
if super().poll(context): if super().poll(context):
arm = context.object arm = context.object
return (arm.active_selection_set < len(arm.selection_sets) and return (arm.active_selection_set < len(arm.selection_sets) and
...@@ -206,7 +206,7 @@ class POSE_OT_selection_set_move(NeedSelSetPluginOperator): ...@@ -206,7 +206,7 @@ class POSE_OT_selection_set_move(NeedSelSetPluginOperator):
) )
@classmethod @classmethod
def poll(self, context): def poll(cls, context):
if super().poll(context): if super().poll(context):
arm = context.object arm = context.object
return len(arm.selection_sets) > 1 return len(arm.selection_sets) > 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment