[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22508] branches/blender2.5/blender/ release/ui: Minor adjustments to particle buttons and particle brush panels .

William Reynish william at reynish.com
Sun Aug 16 13:25:18 CEST 2009


Revision: 22508
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22508
Author:   billrey
Date:     2009-08-16 13:25:18 +0200 (Sun, 16 Aug 2009)

Log Message:
-----------
Minor adjustments to particle buttons and particle brush panels. Use only two rows in lists, and added greying out.

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

Modified: branches/blender2.5/blender/release/ui/buttons_particle.py
===================================================================
--- branches/blender2.5/blender/release/ui/buttons_particle.py	2009-08-16 11:19:22 UTC (rev 22507)
+++ branches/blender2.5/blender/release/ui/buttons_particle.py	2009-08-16 11:25:18 UTC (rev 22508)
@@ -32,7 +32,7 @@
 		if ob:
 			row = layout.row()
 
-			row.template_list(ob, "particle_systems", ob, "active_particle_system_index")
+			row.template_list(ob, "particle_systems", ob, "active_particle_system_index", rows=2)
 
 			col = row.column(align=True)
 			col.itemO("object.particle_system_add", icon="ICON_ZOOMIN", text="")
@@ -154,7 +154,7 @@
 		layout.set_context_pointer("PointCache", cache)
 		
 		row = layout.row()
-		row.template_list(cache, "point_cache_list", cache, "active_point_cache_index")
+		row.template_list(cache, "point_cache_list", cache, "active_point_cache_index", rows=2 )
 		col = row.column(align=True)
 		col.itemO("ptcache.add_new", icon="ICON_ZOOMIN", text="")
 		col.itemO("ptcache.remove", icon="ICON_ZOOMOUT", text="")
@@ -711,9 +711,8 @@
 		col = row.column()
 		col.itemR(part, "material_color", text="Use material color")
 		
-		if (path):
-			box = col.box()				
-			box.itemR(part, "draw_step")
+		if (path):			
+			col.itemR(part, "draw_step")
 		else:
 			subcol = col.column()
 			subcol.active = part.material_color==False

Modified: branches/blender2.5/blender/release/ui/space_view3d_toolbar.py
===================================================================
--- branches/blender2.5/blender/release/ui/space_view3d_toolbar.py	2009-08-16 11:19:22 UTC (rev 22507)
+++ branches/blender2.5/blender/release/ui/space_view3d_toolbar.py	2009-08-16 11:25:18 UTC (rev 22508)
@@ -304,16 +304,18 @@
 			layout.column().itemR(settings, "tool", expand=True)
 			
 			if settings.tool != 'NONE':
-				col = layout.column(align=True)
+				col = layout.column()
 				col.itemR(brush, "size", slider=True)
 				col.itemR(brush, "strength", slider=True)
 				
 			if settings.tool == 'ADD':
-				layout.itemR(settings, "add_interpolate")
 				
 				col = layout.column()
-				col.itemR(brush, "steps", slider=True)
-				col.itemR(settings, "add_keys", slider=True)
+				col.itemR(settings, "add_interpolate")
+				sub = col.column(align=True)
+				sub.active = settings.add_interpolate
+				sub.itemR(brush, "steps", slider=True)
+				sub.itemR(settings, "add_keys", slider=True)
 			elif settings.tool == 'LENGTH':
 				layout.itemR(brush, "length_mode", expand=True)
 			elif settings.tool == 'PUFF':
@@ -560,7 +562,7 @@
 		col.itemR(pe, "keep_root", text="Root")
 		
 		col = layout.column(align=True)
-		col.itemL(text="Draw:")
+		col.itemL(text="Display:")
 		col.itemR(pe, "show_time", text="Time")
 		col.itemR(pe, "show_children", text="Children")
 





More information about the Bf-blender-cvs mailing list