Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-03-19 04:47:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-03-19 04:50:23 +0300
commit8c378c52c83757b9e78d5a98581bf240ed31a1ec (patch)
tree4a44a8e7fab77f9f812a8940713f14dceeec512c /animation_add_corrective_shape_key.py
parent57f376e9465c6b79ebd4409bc30e0b5930dd4140 (diff)
Cleanup: identity for None comparison
Diffstat (limited to 'animation_add_corrective_shape_key.py')
-rw-r--r--animation_add_corrective_shape_key.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/animation_add_corrective_shape_key.py b/animation_add_corrective_shape_key.py
index 66234f94..efb357f8 100644
--- a/animation_add_corrective_shape_key.py
+++ b/animation_add_corrective_shape_key.py
@@ -181,7 +181,7 @@ class add_corrective_pose_shape(bpy.types.Operator):
@classmethod
def poll(cls, context):
- return context.active_object != None
+ return context.active_object is not None
def execute(self, context):
selection = context.selected_objects
@@ -378,7 +378,7 @@ class add_corrective_pose_shape_fast(bpy.types.Operator):
@classmethod
def poll(cls, context):
- return context.active_object != None
+ return context.active_object is not None
def execute(self, context):
selection = context.selected_objects