diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-01 02:35:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-01 02:35:56 +0300 |
commit | d96480884666247beba7085cf709c615a80ddc67 (patch) | |
tree | 13984eea7d8325a7dadd2b27606adc8b10cf938b /release/scripts/ui/properties_physics_smoke.py | |
parent | 41c0236aaa1f4b07650f55905ad1cfa886336268 (diff) |
made scripts pass the pep8 test (though not fully pep8 yet)
added comment in header to know if a script has been converted or not.
Diffstat (limited to 'release/scripts/ui/properties_physics_smoke.py')
-rw-r--r-- | release/scripts/ui/properties_physics_smoke.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/release/scripts/ui/properties_physics_smoke.py b/release/scripts/ui/properties_physics_smoke.py index cd5bbecc9d6..64c9561881d 100644 --- a/release/scripts/ui/properties_physics_smoke.py +++ b/release/scripts/ui/properties_physics_smoke.py @@ -3,12 +3,14 @@ # http://www.gnu.org/copyleft/gpl.html. Installing, importing or otherwise # using this module constitutes acceptance of the terms of this License. - +# <pep8 compliant> import bpy + from properties_physics_common import point_cache_ui from properties_physics_common import effector_weights_ui + class PhysicButtonsPanel(bpy.types.Panel): bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' @@ -19,6 +21,7 @@ class PhysicButtonsPanel(bpy.types.Panel): rd = context.scene.render_data return (ob and ob.type == 'MESH') and (not rd.use_game_engine) + class PHYSICS_PT_smoke(PhysicButtonsPanel): bl_label = "Smoke" @@ -90,6 +93,7 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel): #elif md.smoke_type == 'TYPE_COLL': # layout.itemS() + class PHYSICS_PT_smoke_groups(PhysicButtonsPanel): bl_label = "Smoke Groups" bl_default_closed = True @@ -116,6 +120,7 @@ class PHYSICS_PT_smoke_groups(PhysicButtonsPanel): col.itemL(text="Collision Group:") col.itemR(group, "coll_group", text="") + class PHYSICS_PT_smoke_cache(PhysicButtonsPanel): bl_label = "Smoke Cache" bl_default_closed = True @@ -130,7 +135,8 @@ class PHYSICS_PT_smoke_cache(PhysicButtonsPanel): md = context.smoke.domain_settings cache = md.point_cache_low - point_cache_ui(self, cache, cache.baked==False, 0, 1) + point_cache_ui(self, cache, cache.baked == False, 0, 1) + class PHYSICS_PT_smoke_highres(PhysicButtonsPanel): bl_label = "Smoke High Resolution" @@ -162,6 +168,7 @@ class PHYSICS_PT_smoke_highres(PhysicButtonsPanel): col.itemR(md, "strength") col.itemR(md, "viewhighres") + class PHYSICS_PT_smoke_cache_highres(PhysicButtonsPanel): bl_label = "Smoke High Resolution Cache" bl_default_closed = True @@ -176,7 +183,8 @@ class PHYSICS_PT_smoke_cache_highres(PhysicButtonsPanel): md = context.smoke.domain_settings cache = md.point_cache_high - point_cache_ui(self, cache, cache.baked==False, 0, 1) + point_cache_ui(self, cache, cache.baked == False, 0, 1) + class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel): bl_label = "Smoke Field Weights" |