Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2009-07-31 19:36:14 +0400
committerThomas Dinges <blender@dingto.org>2009-07-31 19:36:14 +0400
commitfb52042375e799127c01257cbf25bdf2ba1266d8 (patch)
tree79e2555a18d3cbf429675b9fab0b0c230ecbd32c /release
parent50ea547176c4769856050cff2af0fac809342ce0 (diff)
2.5 Field Panels:
* Attempt to make it a bit more consistent. ;-)
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_physics_field.py52
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'):