Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Reynish <billrey@me.com>2019-02-28 22:46:05 +0300
committerWilliam Reynish <billrey@me.com>2019-02-28 22:46:05 +0300
commit3b3b86f62a3c1a6b7d778f00591411c8b1dede0f (patch)
tree1d1679de2c20d5b200ab694aab087df1007a7b32 /release/scripts/startup/bl_ui/properties_particle.py
parentb104b3cdcff00ac4ac17b3b52e05997aa92fb562 (diff)
UI: Particles
Nicer alignment in Vertex Groups panel
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_particle.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_particle.py32
1 files changed, 24 insertions, 8 deletions
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