Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2009-09-09 23:52:10 +0400
committerThomas Dinges <blender@dingto.org>2009-09-09 23:52:10 +0400
commit2fabd68deb4840ac2112f467d2eaa7efa95fd9da (patch)
tree816f245c65c8d7ae6f09c3e4e13e8d1fc20d87ca
parentb1bbfda8a55ca5cf41319ca8a65993cd154fab01 (diff)
* Small code cleanup.
-rw-r--r--release/ui/buttons_physics_smoke.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/release/ui/buttons_physics_smoke.py b/release/ui/buttons_physics_smoke.py
index 83c1ffc2e9a..8d86a6ef2d6 100644
--- a/release/ui/buttons_physics_smoke.py
+++ b/release/ui/buttons_physics_smoke.py
@@ -90,10 +90,7 @@ class PHYSICS_PT_smoke_groups(PhysicButtonsPanel):
def poll(self, context):
md = context.smoke
- if md:
- return (md.smoke_type == 'TYPE_DOMAIN')
-
- return False
+ return md and (md.smoke_type == 'TYPE_DOMAIN')
def draw(self, context):
layout = self.layout