diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-08 09:23:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-08 09:23:00 +0400 |
commit | 2135f8806c5154bb55374faf83cdecb48d4de090 (patch) | |
tree | 31cd393b5df32f5cef333f1a6d34398cc12bdfcc /rigify/ui.py | |
parent | d061f22884156296541aa01d6f41e993dbe5412a (diff) |
use sets rather then tuples for if checks, python optimizes this case.
Diffstat (limited to 'rigify/ui.py')
-rw-r--r-- | rigify/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rigify/ui.py b/rigify/ui.py index 7551ce86..741d6dab 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -46,7 +46,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel): obj = context.object id_store = C.window_manager - if obj.mode in ('POSE', 'OBJECT'): + if obj.mode in {'POSE', 'OBJECT'}: row = layout.row() row.operator("pose.rigify_generate", text="Generate") elif obj.mode == 'EDIT': |