2.5 Physic Buttons:
authorThomas Dinges <blender@dingto.org>
Sat, 4 Jul 2009 08:50:41 +0000 (08:50 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 4 Jul 2009 08:50:41 +0000 (08:50 +0000)
* Some minor layout cleanup to the field panel.

release/ui/buttons_physics_field.py

index f117a7395862bda174d195aeaa6d941394535133..696de5e6d56778dfb6dc8e2fe9438770c15bff3a 100644 (file)
@@ -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)