UI: Start UIList with 2 rows for materials/particles

There is room for it anyway because of the 3 buttons on the right.
This commit is contained in:
Pablo Vazquez 2018-06-18 12:20:58 +02:00
parent d5ec62a0c3
commit 5e47f365e1
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class EEVEE_MATERIAL_PT_context_material(MaterialButtonsPanel, Panel):
if ob:
is_sortable = len(ob.material_slots) > 1
rows = 1
rows = 2
if (is_sortable):
rows = 4

View File

@ -150,7 +150,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
row = layout.row()
row.template_list("PARTICLE_UL_particle_systems", "particle_systems", ob, "particle_systems",
ob.particle_systems, "active_index", rows=1)
ob.particle_systems, "active_index", rows=2)
col = row.column(align=True)
col.operator("object.particle_system_add", icon='ZOOMIN', text="")