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-04 12:50:41 +0400
committerThomas Dinges <blender@dingto.org>2009-07-04 12:50:41 +0400
commit84c614ff5fed57567d23177096e2bae51f66a21a (patch)
tree725a1d035ec583d8f23dbb9cdcb7ef758a59ddfc /release
parent66918b3add4dfc90a8074f4bdc1c797ae9bf1371 (diff)
2.5 Physic Buttons:
* Some minor layout cleanup to the field panel.
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_physics_field.py10
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)