diff options
Diffstat (limited to 'release/ui/buttons_physics_field.py')
-rw-r--r-- | release/ui/buttons_physics_field.py | 52 |
1 files changed, 21 insertions, 31 deletions
diff --git a/release/ui/buttons_physics_field.py b/release/ui/buttons_physics_field.py index 9a24fb7cd21..3b054f7d557 100644 --- a/release/ui/buttons_physics_field.py +++ b/release/ui/buttons_physics_field.py @@ -22,72 +22,62 @@ class PHYSICS_PT_field(PhysicButtonsPanel): #layout.active = field.enabled - split = layout.split() - - col = split.column() - col.itemR(field, "type", text="") - - col = split.column() - split = layout.split(percentage=0.5) + split = layout.split(percentage=0.2) - if field.type == 'NONE': - col = split.column() + split.itemL(text="Type:") + split.itemR(field, "type",text="") - elif field.type == 'GUIDE': - col = split.column() - col.itemR(field, "guide_path_add") + split = layout.split() + + if field.type == 'GUIDE': + layout.itemR(field, "guide_path_add") elif field.type == 'WIND': - col.itemR(field, "strength") + split.itemR(field, "strength") col = split.column() col.itemR(field, "noise") col.itemR(field, "seed") elif field.type == 'VORTEX': - col.itemR(field, "strength") + split.itemR(field, "strength") + split.itemL() - col = split.column() - elif field.type in ('SPHERICAL', 'CHARGE', 'LENNARDJ'): - col = split.column() - col.itemR(field, "strength") + split.itemR(field, "strength") col = split.column() col.itemR(field, "planar") - col = split.column() col.itemR(field, "surface") elif field.type == 'BOID': - col.itemR(field, "strength") - - col = split.column() - col.itemR(field, "surface") + split.itemR(field, "strength") + split.itemR(field, "surface") elif field.type == 'MAGNET': - col.itemR(field, "strength") - - col = split.column() - col.itemR(field, "planar") + split.itemR(field, "strength") + split.itemR(field, "planar") elif field.type == 'HARMONIC': + col = split.column() col.itemR(field, "strength") col.itemR(field, "harmonic_damping", text="Damping") col = split.column() - col.itemR(field, "surface") col.itemR(field, "planar") + col.itemR(field, "surface") elif field.type == 'TEXTURE': + col = split.column() col.itemR(field, "strength") col.itemR(field, "texture", text="") - col.itemR(field, "force_2d") - - col = split.column() col.itemR(field, "texture_mode", text="") col.itemR(field, "texture_nabla") + + col = split.column() col.itemR(field, "use_coordinates") col.itemR(field, "root_coordinates") + col.itemR(field, "force_2d") if field.type in ('HARMONIC', 'SPHERICAL', 'CHARGE', 'WIND', 'VORTEX', 'TEXTURE', 'MAGNET', 'BOID'): |