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 /system_demo_mode/__init__.py | |
parent | 279933b83f0eeb77a1a32c8ddd6d58b4e36c8342 (diff) |
use sets for checking against multiple values.
Diffstat (limited to 'system_demo_mode/__init__.py')
-rw-r--r-- | system_demo_mode/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system_demo_mode/__init__.py b/system_demo_mode/__init__.py index 250327a2..febbad2e 100644 --- a/system_demo_mode/__init__.py +++ b/system_demo_mode/__init__.py @@ -174,7 +174,7 @@ class DemoModeSetup(bpy.types.Operator): layout.separator() sub = layout.column() - sub.active = (mode in ('AUTO', 'PLAY')) + sub.active = (mode in {'AUTO', 'PLAY'}) sub.label("Animate Settings:") sub.prop(self, "anim_cycles") sub.prop(self, "anim_time_min") @@ -183,7 +183,7 @@ class DemoModeSetup(bpy.types.Operator): layout.separator() sub = layout.column() - sub.active = (mode in ('AUTO', 'RENDER')) + sub.active = (mode in {'AUTO', 'RENDER'}) sub.label("Render Settings:") sub.prop(self, "display_render") |