[Bf-blender-cvs] [5e47f365e1e] blender2.8: UI: Start UIList with 2 rows for materials/particles

Pablo Vazquez noreply at git.blender.org
Mon Jun 18 12:21:19 CEST 2018


Commit: 5e47f365e1e743ca1cc86e9f1dad936d5ce7e93a
Author: Pablo Vazquez
Date:   Mon Jun 18 12:20:58 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB5e47f365e1e743ca1cc86e9f1dad936d5ce7e93a

UI: Start UIList with 2 rows for materials/particles

There is room for it anyway because of the 3 buttons on the right.

===================================================================

M	release/scripts/startup/bl_ui/properties_material.py
M	release/scripts/startup/bl_ui/properties_particle.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py
index 75cdd2d68c6..2b298c560c7 100644
--- a/release/scripts/startup/bl_ui/properties_material.py
+++ b/release/scripts/startup/bl_ui/properties_material.py
@@ -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
 
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py
index 1e08b8e4b46..76e490ad07a 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -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="")



More information about the Bf-blender-cvs mailing list