diff options
author | Thomas Dinges <blender@dingto.org> | 2009-09-09 23:52:10 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-09-09 23:52:10 +0400 |
commit | 2fabd68deb4840ac2112f467d2eaa7efa95fd9da (patch) | |
tree | 816f245c65c8d7ae6f09c3e4e13e8d1fc20d87ca | |
parent | b1bbfda8a55ca5cf41319ca8a65993cd154fab01 (diff) |
* Small code cleanup.
-rw-r--r-- | release/ui/buttons_physics_smoke.py | 5 |
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 |