Revision: 21362
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21362
Author:   dingto
Date:     2009-07-04 10:50:41 +0200 (Sat, 04 Jul 2009)

Log Message:
-----------
2.5 Physic Buttons:

* Some minor layout cleanup to the field panel.

Modified Paths:
--------------
    branches/blender2.5/blender/release/ui/buttons_physics_field.py

Modified: branches/blender2.5/blender/release/ui/buttons_physics_field.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_physics_field.py     
2009-07-04 03:50:12 UTC (rev 21361)
+++ branches/blender2.5/blender/release/ui/buttons_physics_field.py     
2009-07-04 08:50:41 UTC (rev 21362)
@@ -30,6 +30,7 @@
 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 @@
                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)


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to