diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-02-07 14:59:15 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2018-02-08 12:35:50 +0300 |
commit | d83880c35bf15d5218d70222585fad87a377b8f2 (patch) | |
tree | ecd96f0d3dd4fb336e6d84f4de30d6cc1fbaa350 /bone_selection_sets.py | |
parent | c88411ff7776a2db5d6ef6117a1b2faa42a95611 (diff) |
Bone Selection Sets: @classmethod should have cls, not self
The first paramter of a @classmethod should be 'cls'.
Diffstat (limited to 'bone_selection_sets.py')
-rw-r--r-- | bone_selection_sets.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bone_selection_sets.py b/bone_selection_sets.py index 46aa7f25..22cadd50 100644 --- a/bone_selection_sets.py +++ b/bone_selection_sets.py @@ -142,7 +142,7 @@ class POSE_MT_create_new_selection_set(Menu): class PluginOperator(Operator): @classmethod - def poll(self, context): + def poll(cls, context): return (context.object and context.object.type == 'ARMATURE' and context.mode == 'POSE') @@ -150,7 +150,7 @@ class PluginOperator(Operator): class NeedSelSetPluginOperator(PluginOperator): @classmethod - def poll(self, context): + def poll(cls, context): if super().poll(context): arm = context.object return (arm.active_selection_set < len(arm.selection_sets) and @@ -206,7 +206,7 @@ class POSE_OT_selection_set_move(NeedSelSetPluginOperator): ) @classmethod - def poll(self, context): + def poll(cls, context): if super().poll(context): arm = context.object return len(arm.selection_sets) > 1 |