diff options
Diffstat (limited to 'release/ui/buttons_physics_smoke.py')
-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 |