[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21567] branches/blender2.5/blender/ release/ui/buttons_physic_cloth.py: Cloth UI: another 2 little tweaks ( self coll + scaling UI)

Daniel Genrich daniel.genrich at gmx.net
Tue Jul 14 01:02:44 CEST 2009


Revision: 21567
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21567
Author:   genscher
Date:     2009-07-14 01:02:44 +0200 (Tue, 14 Jul 2009)

Log Message:
-----------
Cloth UI: another 2 little tweaks (self coll + scaling UI)

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

Modified: branches/blender2.5/blender/release/ui/buttons_physic_cloth.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_physic_cloth.py	2009-07-13 22:46:30 UTC (rev 21566)
+++ branches/blender2.5/blender/release/ui/buttons_physic_cloth.py	2009-07-13 23:02:44 UTC (rev 21567)
@@ -137,6 +137,7 @@
 	def draw(self, context):
 		layout = self.layout
 		cloth = context.cloth.collision_settings
+		split = layout.split()
 		
 		layout.active = cloth.enable_collision
 		
@@ -147,7 +148,7 @@
 		
 		col = split.column(align="True")
 		col.itemR(cloth, "enable_self_collision", text="Self Collision")
-		
+		col = col.column(align=True)
 		col.active = cloth.enable_self_collision
 		col.itemR(cloth, "self_collision_quality", slider=True, text="Quality")
 		col.itemR(cloth, "self_min_distance", text="Distance")
@@ -176,13 +177,13 @@
 		
 		sub = split.column(align=True)
 		sub.itemL(text="Structural Stiffness:")
+		sub.itemR(cloth, "structural_stiffness_max", text="Max")
 		sub.item_pointerR(cloth, "structural_stiffness_vertex_group", ob, "vertex_groups", text="")
-		sub.itemR(cloth, "structural_stiffness_max", text="Max")
 		
 		sub = split.column(align=True)
 		sub.itemL(text="Bending Stiffness:")
+		sub.itemR(cloth, "bending_stiffness_max", text="Max")
 		sub.item_pointerR(cloth, "bending_vertex_group", ob, "vertex_groups", text="")
-		sub.itemR(cloth, "bending_stiffness_max", text="Max")
 		
 bpy.types.register(PHYSICS_PT_cloth)
 bpy.types.register(PHYSICS_PT_cloth_cache)





More information about the Bf-blender-cvs mailing list