Minor adjustments to particle buttons and particle brush panels. Use only two rows in lists, and added greying out.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user