forked from bartvdbraak/blender
Fix #30464: Confusing lack of label for Fluid "use"
It was indeed not clear at all what that label-less check box does. Move it to next row (to prevent fluid type menu be too narrow) and use label default for it. Also don't create second column which is empty for outflow fluid type.
This commit is contained in:
parent
50b6c903ff
commit
1e173fefd6
@ -42,14 +42,14 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel):
|
||||
md = context.fluid
|
||||
fluid = md.settings
|
||||
|
||||
row = layout.row()
|
||||
col = layout.column()
|
||||
if fluid is None:
|
||||
row.label("Built without fluids")
|
||||
col.label("Built without fluids")
|
||||
return
|
||||
|
||||
row.prop(fluid, "type")
|
||||
col.prop(fluid, "type")
|
||||
if fluid.type not in {'NONE', 'DOMAIN', 'PARTICLE', 'FLUID'}:
|
||||
row.prop(fluid, "use", text="")
|
||||
col.prop(fluid, "use")
|
||||
|
||||
layout = layout.column()
|
||||
if fluid.type not in {'NONE', 'DOMAIN', 'PARTICLE', 'FLUID'}:
|
||||
@ -134,15 +134,11 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel, Panel):
|
||||
col.prop(fluid, "inflow_velocity", text="")
|
||||
|
||||
elif fluid.type == 'OUTFLOW':
|
||||
split = layout.split()
|
||||
|
||||
col = split.column()
|
||||
col = layout.column()
|
||||
col.label(text="Volume Initialization:")
|
||||
col.prop(fluid, "volume_initialization", text="")
|
||||
col.prop(fluid, "use_animated_mesh")
|
||||
|
||||
split.column()
|
||||
|
||||
elif fluid.type == 'PARTICLE':
|
||||
split = layout.split()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user