diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-07-20 20:52:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-07-20 20:52:13 +0300 |
commit | 3c23caa4c0b31b9908a43737369b715915a8fe62 (patch) | |
tree | adfc4dadb935d76f868ca4f516c64b1a48ebe3a5 /rigify/rig_ui_template.py | |
parent | c16bac5b9e1f3543ff35b5df5bff0f27b6c19ea0 (diff) |
Cleanup: use identity for None comparisons
Diffstat (limited to 'rigify/rig_ui_template.py')
-rw-r--r-- | rigify/rig_ui_template.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rigify/rig_ui_template.py b/rigify/rig_ui_template.py index c37b9db6..717410da 100644 --- a/rigify/rig_ui_template.py +++ b/rigify/rig_ui_template.py @@ -386,7 +386,7 @@ class Rigify_Arm_FK2IK(bpy.types.Operator): @classmethod def poll(cls, context): - return (context.active_object != None and context.mode == 'POSE') + return (context.active_object is not None and context.mode == 'POSE') def execute(self, context): use_global_undo = context.user_preferences.edit.use_global_undo @@ -416,7 +416,7 @@ class Rigify_Arm_IK2FK(bpy.types.Operator): @classmethod def poll(cls, context): - return (context.active_object != None and context.mode == 'POSE') + return (context.active_object is not None and context.mode == 'POSE') def execute(self, context): use_global_undo = context.user_preferences.edit.use_global_undo @@ -447,7 +447,7 @@ class Rigify_Leg_FK2IK(bpy.types.Operator): @classmethod def poll(cls, context): - return (context.active_object != None and context.mode == 'POSE') + return (context.active_object is not None and context.mode == 'POSE') def execute(self, context): use_global_undo = context.user_preferences.edit.use_global_undo @@ -479,7 +479,7 @@ class Rigify_Leg_IK2FK(bpy.types.Operator): @classmethod def poll(cls, context): - return (context.active_object != None and context.mode == 'POSE') + return (context.active_object is not None and context.mode == 'POSE') def execute(self, context): use_global_undo = context.user_preferences.edit.use_global_undo |