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
path: root/rigify
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-01-04 08:26:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-04 08:26:33 +0400
commitb59b7bba820d1fed0fc250283821058831985ce2 (patch)
tree2ea1c98ef71a995ea84a9895a398a23740521186 /rigify
parent279933b83f0eeb77a1a32c8ddd6d58b4e36c8342 (diff)
use sets for checking against multiple values.
Diffstat (limited to 'rigify')
-rw-r--r--rigify/ui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rigify/ui.py b/rigify/ui.py
index bc5c4d8f..d42c96da 100644
--- a/rigify/ui.py
+++ b/rigify/ui.py
@@ -38,7 +38,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel):
return False
#obj = context.object
#if obj:
- # return (obj.mode in ('POSE', 'OBJECT', 'EDIT'))
+ # return (obj.mode in {'POSE', 'OBJECT', 'EDIT'})
#return False
return True
@@ -133,7 +133,7 @@ class BONE_PT_rigify_buttons(bpy.types.Panel):
return False
obj = context.object
if obj:
- return (obj.mode in ('POSE'))
+ return obj.mode == 'POSE'
return False
def draw(self, context):