UI: Layout tweaks to Curve Guide force field min/max distance

For consistency with other force fields and other areas in Blender.

* Align "Use Max" and "Maximum Distance" in one line.
* Rename "Maximum Distance" to "Max Distance"
* Rename "Minimum Distance" to "Min Distance"
* Move "Minimum Distance" below maximum.
This commit is contained in:
Pablo Vazquez 2022-05-09 16:08:34 +02:00
parent 865cdff426
commit 36e330bd9c
1 changed files with 12 additions and 4 deletions

View File

@ -77,7 +77,6 @@ class PHYSICS_PT_field_settings(PhysicButtonsPanel, Panel):
elif field.type == 'GUIDE':
col = flow.column()
col.prop(field, "guide_minimum")
col.prop(field, "guide_free")
col.prop(field, "falloff_power")
col.prop(field, "use_guide_path_add")
@ -88,11 +87,20 @@ class PHYSICS_PT_field_settings(PhysicButtonsPanel, Panel):
col = flow.column()
col.prop(field, "guide_clump_amount", text="Clumping Amount")
col.prop(field, "guide_clump_shape")
col.prop(field, "use_max_distance")
sub = col.column()
col.separator()
col.prop(field, "guide_minimum", text="Min Distance")
col = layout.column(align=False, heading="Max Distance")
col.use_property_decorate = False
row = col.row(align=True)
sub = row.row(align=True)
sub.prop(field, "use_max_distance", text="")
sub = sub.row(align=True)
sub.active = field.use_max_distance
sub.prop(field, "distance_max")
sub.prop(field, "distance_max", text="")
row.prop_decorator(field, "distance_max")
elif field.type == 'TEXTURE':
col = flow.column()