diff options
author | Thomas Dinges <blender@dingto.org> | 2009-07-04 12:50:41 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2009-07-04 12:50:41 +0400 |
commit | 84c614ff5fed57567d23177096e2bae51f66a21a (patch) | |
tree | 725a1d035ec583d8f23dbb9cdcb7ef758a59ddfc | |
parent | 66918b3add4dfc90a8074f4bdc1c797ae9bf1371 (diff) |
2.5 Physic Buttons:
* Some minor layout cleanup to the field panel.
-rw-r--r-- | release/ui/buttons_physics_field.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/release/ui/buttons_physics_field.py b/release/ui/buttons_physics_field.py index f117a739586..696de5e6d56 100644 --- a/release/ui/buttons_physics_field.py +++ b/release/ui/buttons_physics_field.py @@ -30,6 +30,7 @@ class PHYSICS_PT_field(PhysicButtonsPanel): class PHYSICS_PT_collision(PhysicButtonsPanel): __idname__ = "PHYSICS_PT_collision" __label__ = "Collision" + __default_closed__ = True def poll(self, context): ob = context.object @@ -44,20 +45,21 @@ class PHYSICS_PT_collision(PhysicButtonsPanel): md = context.collision settings = context.object.collision - layout.enabled = settings.enabled + layout.active = settings.enabled - col = layout.column() + split = layout.split() + + col = split.column() col.itemL(text="Damping:") col.itemR(settings, "damping_factor", text="Factor"); col.itemR(settings, "random_damping", text="Random"); - col = layout.column() + col = split.column() col.itemL(text="Friction:") col.itemR(settings, "friction_factor", text="Factor"); col.itemR(settings, "random_friction", text="Random"); layout.itemR(settings, "permeability"); - layout.itemR(settings, "kill_particles"); bpy.types.register(PHYSICS_PT_field) |