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>2012-01-04 08:26:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-04 08:26:33 +0400
commitb59b7bba820d1fed0fc250283821058831985ce2 (patch)
tree2ea1c98ef71a995ea84a9895a398a23740521186 /system_demo_mode
parent279933b83f0eeb77a1a32c8ddd6d58b4e36c8342 (diff)
use sets for checking against multiple values.
Diffstat (limited to 'system_demo_mode')
-rw-r--r--system_demo_mode/__init__.py4
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")