[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28664] branches/render25/release/scripts/ ui/properties_physics_field.py: Field Buttons:

Thomas Dinges dingto at gmx.de
Sat May 8 10:38:07 CEST 2010


Revision: 28664
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28664
Author:   dingto
Date:     2010-05-08 10:38:04 +0200 (Sat, 08 May 2010)

Log Message:
-----------
Field Buttons:
* Own row for "use_all_layers", to prevent jumping around of the button in different situations. Also makes single column layout readable again.

Modified Paths:
--------------
    branches/render25/release/scripts/ui/properties_physics_field.py

Modified: branches/render25/release/scripts/ui/properties_physics_field.py
===================================================================
--- branches/render25/release/scripts/ui/properties_physics_field.py	2010-05-08 07:48:37 UTC (rev 28663)
+++ branches/render25/release/scripts/ui/properties_physics_field.py	2010-05-08 08:38:04 UTC (rev 28664)
@@ -45,7 +45,8 @@
         ob = context.object
         field = ob.field
         wide_ui = context.region.width > narrowui
-
+        
+        # Type Menu
         if wide_ui:
             split = layout.split(percentage=0.2)
             split.label(text="Type:")
@@ -53,18 +54,22 @@
             split = layout.split()
 
         split.prop(field, "type", text="")
-
+        
+        # Use All Layers
+        col = layout.column()
+        col.prop(context.active_object, "use_all_layers")
+        
+        # Shape Menu
         if field.type not in ('NONE', 'GUIDE', 'TEXTURE'):
             if wide_ui:
                 split = layout.split(percentage=0.2)
                 split.label(text="Shape:")
             else:
                 split = layout.split()
+
             split.prop(field, "shape", text="")
 
-        split = split.row()
-        split.prop(context.active_object, "use_all_layers")
-
+        # Settings for the fields
         split = layout.split()
 
         if field.type == 'NONE':





More information about the Bf-blender-cvs mailing list