diff options
Diffstat (limited to 'release/ui/buttons_physics_fluid.py')
-rw-r--r-- | release/ui/buttons_physics_fluid.py | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/release/ui/buttons_physics_fluid.py b/release/ui/buttons_physics_fluid.py index 1d0a64c517a..6f7a97ff793 100644 --- a/release/ui/buttons_physics_fluid.py +++ b/release/ui/buttons_physics_fluid.py @@ -46,7 +46,7 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel): layout.itemR(fluid, "type") if fluid.type == 'DOMAIN': - layout.itemO("fluid.bake", text="BAKE") + layout.itemO("fluid.bake", text="Bake Fluid Simulation", icon='ICON_MOD_FLUIDSIM') split = layout.split() col = split.column() @@ -94,7 +94,7 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel): col.itemL(text="Slip Type:") col.itemR(fluid, "slip_type", text="") if fluid.slip_type == 'PARTIALSLIP': - col.itemR(fluid, "partial_slip_amount", slider=True, text="Amount") + col.itemR(fluid, "partial_slip_factor", slider=True, text="Amount") col.itemL(text="Impact:") col.itemR(fluid, "impact_factor", text="Factor") @@ -175,11 +175,7 @@ class PHYSICS_PT_domain_gravity(PhysicButtonsPanel): def poll(self, context): md = context.fluid if md: - settings = md.settings - if settings: - return (settings.type == 'DOMAIN') - - return False + return (md.settings.type == 'DOMAIN') def draw(self, context): layout = self.layout @@ -218,11 +214,7 @@ class PHYSICS_PT_domain_boundary(PhysicButtonsPanel): def poll(self, context): md = context.fluid if md: - settings = md.settings - if settings: - return (settings.type == 'DOMAIN') - - return False + return (md.settings.type == 'DOMAIN') def draw(self, context): layout = self.layout @@ -236,7 +228,7 @@ class PHYSICS_PT_domain_boundary(PhysicButtonsPanel): sub = col.column(align=True) sub.itemR(fluid, "slip_type", text="") if fluid.slip_type == 'PARTIALSLIP': - sub.itemR(fluid, "partial_slip_amount", slider=True, text="Amount") + sub.itemR(fluid, "partial_slip_factor", slider=True, text="Amount") col = split.column() col.itemL(text="Surface:") @@ -251,12 +243,8 @@ class PHYSICS_PT_domain_particles(PhysicButtonsPanel): def poll(self, context): md = context.fluid if md: - settings = md.settings - if settings: - return (settings.type == 'DOMAIN') - - return False - + return (md.settings.type == 'DOMAIN') + def draw(self, context): layout = self.layout |