style cleanup: pep8, also quiet compiler warning.

This commit is contained in:
Campbell Barton
2012-04-20 18:50:18 +00:00
parent 2e20d3dc96
commit 15eb3452ec
7 changed files with 14 additions and 12 deletions

View File

@@ -20,6 +20,7 @@
import bpy
from bpy.types import Panel, Menu
class FLUID_MT_presets(Menu):
bl_label = "Fluid Presets"
preset_subdir = "fluid"
@@ -232,7 +233,7 @@ class PHYSICS_PT_domain_gravity(PhysicButtonsPanel, Panel):
sub.menu("FLUID_MT_presets", text=bpy.types.FLUID_MT_presets.bl_label)
sub.operator("fluid.preset_add", text="", icon='ZOOMIN')
sub.operator("fluid.preset_add", text="", icon='ZOOMOUT').remove_active = True
subsub = col.column(align=True)
subsub.prop(fluid, "viscosity_base", text="Base")
subsub.prop(fluid, "viscosity_exponent", text="Exponent", slider=True)