diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-04 08:26:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-04 08:26:33 +0400 |
commit | b59b7bba820d1fed0fc250283821058831985ce2 (patch) | |
tree | 2ea1c98ef71a995ea84a9895a398a23740521186 /rigify | |
parent | 279933b83f0eeb77a1a32c8ddd6d58b4e36c8342 (diff) |
use sets for checking against multiple values.
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/ui.py | 4 |
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): |