Commit: 3b3b86f62a3c1a6b7d778f00591411c8b1dede0f
Author: William Reynish
Date:   Thu Feb 28 20:46:05 2019 +0100
Branches: master
https://developer.blender.org/rB3b3b86f62a3c1a6b7d778f00591411c8b1dede0f

UI: Particles

Nicer alignment in Vertex Groups panel

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_particle.py 
b/release/scripts/startup/bl_ui/properties_particle.py
index 8a086e46a27..e129b592c5d 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -1997,35 +1997,51 @@ class PARTICLE_PT_vertexgroups(ParticleButtonsPanel, 
Panel):
 
         col = layout.column()
         row = col.row(align=True)
-        row.prop_search(psys, "vertex_group_density", ob, "vertex_groups", 
text="Density")
+        sub = row.row(align=True)
+        sub.use_property_decorate = False
+        sub.prop_search(psys, "vertex_group_density", ob, "vertex_groups", 
text="Density")
         row.prop(psys, "invert_vertex_group_density", text="", toggle=True, 
icon='ARROW_LEFTRIGHT')
 
         row = col.row(align=True)
-        row.prop_search(psys, "vertex_group_length", ob, "vertex_groups", 
text="Length")
+        sub = row.row(align=True)
+        sub.use_property_decorate = False
+        sub.prop_search(psys, "vertex_group_length", ob, "vertex_groups", 
text="Length")
         row.prop(psys, "invert_vertex_group_length", text="", toggle=True, 
icon='ARROW_LEFTRIGHT')
 
         row = col.row(align=True)
-        row.prop_search(psys, "vertex_group_clump", ob, "vertex_groups", 
text="Clump")
+        sub = row.row(align=True)
+        sub.use_property_decorate = False
+        sub.prop_search(psys, "vertex_group_clump", ob, "vertex_groups", 
text="Clump")
         row.prop(psys, "invert_vertex_group_clump", text="", toggle=True, 
icon='ARROW_LEFTRIGHT')
 
         row = col.row(align=True)
-        row.prop_search(psys, "vertex_group_kink", ob, "vertex_groups", 
text="Kink")
+        sub = row.row(align=True)
+        sub.use_property_decorate = False
+        sub.prop_search(psys, "vertex_group_kink", ob, "vertex_groups", 
text="Kink")
         row.prop(psys, "invert_vertex_group_kink", text="", toggle=True, 
icon='ARROW_LEFTRIGHT')
 
         row = col.row(align=True)
-        row.prop_search(psys, "vertex_group_roughness_1", ob, "vertex_groups", 
text="Roughness 1")
+        sub = row.row(align=True)
+        sub.use_property_decorate = False
+        sub.prop_search(psys, "vertex_group_roughness_1", ob, "vertex_groups", 
text="Roughness 1")
         row.prop(psys, "invert_vertex_group_roughness_1", text="", 
toggle=True, icon='ARROW_LEFTRIGHT')
 
         row = col.row(align=True)
-        row.prop_search(psys, "vertex_group_roughness_2", ob, "vertex_groups", 
text="Roughness 2")
+        sub = row.row(align=True)
+        sub.use_property_decorate = False
+        sub.prop_search(psys, "vertex_group_roughness_2", ob, "vertex_groups", 
text="Roughness 2")
         row.prop(psys, "invert_vertex_group_roughness_2", text="", 
toggle=True, icon='ARROW_LEFTRIGHT')
 
         row = col.row(align=True)
-        row.prop_search(psys, "vertex_group_roughness_end", ob, 
"vertex_groups", text="Roughness End")
+        sub = row.row(align=True)
+        sub.use_property_decorate = False
+        sub.prop_search(psys, "vertex_group_roughness_end", ob, 
"vertex_groups", text="Roughness End")
         row.prop(psys, "invert_vertex_group_roughness_end", text="", 
toggle=True, icon='ARROW_LEFTRIGHT')
 
         row = col.row(align=True)
-        row.prop_search(psys, "vertex_group_twist", ob, "vertex_groups", 
text="Twist")
+        sub = row.row(align=True)
+        sub.use_property_decorate = False
+        sub.prop_search(psys, "vertex_group_twist", ob, "vertex_groups", 
text="Twist")
         row.prop(psys, "invert_vertex_group_twist", text="", toggle=True, 
icon='ARROW_LEFTRIGHT')
 
         # Commented out vertex groups don't work and are still waiting for 
better implementation

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to