Minor adjustments to particle buttons and particle brush panels. Use only two rows...
authorWilliam Reynish <william@reynish.com>
Sun, 16 Aug 2009 11:25:18 +0000 (11:25 +0000)
committerWilliam Reynish <william@reynish.com>
Sun, 16 Aug 2009 11:25:18 +0000 (11:25 +0000)
release/ui/buttons_particle.py
release/ui/space_view3d_toolbar.py

index dae95dfcc00277460deb63787d08f32877804d6d..07ad3b7841ca651b89bcfc9ce13d6a9c12737136 100644 (file)
@@ -32,7 +32,7 @@ class PARTICLE_PT_particles(ParticleButtonsPanel):
                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 @@ class PARTICLE_PT_cache(ParticleButtonsPanel):
                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 @@ class PARTICLE_PT_draw(ParticleButtonsPanel):
                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
index 1316df8d2ee8709662795325a545ee96070bc4d7..20e69a832adcabb45311eb2636353d0a7df77a39 100644 (file)
@@ -304,16 +304,18 @@ class VIEW3D_PT_tools_brush(PaintPanel):
                        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 @@ class VIEW3D_PT_tools_particlemode(View3DPanel):
                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")