Revision: 23092 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23092 Author: dingto Date: 2009-09-09 21:52:10 +0200 (Wed, 09 Sep 2009)
Log Message: ----------- * Small code cleanup. Modified Paths: -------------- branches/blender2.5/blender/release/ui/buttons_physics_smoke.py Modified: branches/blender2.5/blender/release/ui/buttons_physics_smoke.py =================================================================== --- branches/blender2.5/blender/release/ui/buttons_physics_smoke.py 2009-09-09 19:43:42 UTC (rev 23091) +++ branches/blender2.5/blender/release/ui/buttons_physics_smoke.py 2009-09-09 19:52:10 UTC (rev 23092) @@ -90,10 +90,7 @@ 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 _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs