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:
authorBastien Montagne <montagne29@wanadoo.fr>2011-09-08 11:36:59 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2011-09-08 11:36:59 +0400
commit1f0bb0e0353687c17738608d884077dc6779638d (patch)
tree0f9f0a4fc3726adb87590b2572b58e3b2180da3f /release
parent3dccd96ac705011ac396a3eb1d3b07a18ef485a7 (diff)
Vertex Weight Proximity: minor updates and fixes.
*Updated UI code (replaced “row columns” by splits ;) ). *Clamped global influence to [0.0, 1.0] range! *Added/edited some tooltips for Proximity. *Proximity distance mapping can now be reversed by entering Lowest Dist > Highest Dist. *Moved mapping before masking in Proximity, much more sensible this way!
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_modifier.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 348ca554e63..c80823b0803 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -740,20 +740,21 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
@staticmethod
def vertex_weight_mask(layout, ob, md):
layout.label(text="Influence/Mask Options:")
- split = layout.split()
- col1 = split.column()
- col2 = split.column()
+ row = layout.row()
- col1.label(text="Global Influence:")
- col2.prop(md, "mask_constant", text="")
+ split = layout.split(percentage=0.4)
+ split.label(text="Global Influence:")
+ split.prop(md, "mask_constant", text="")
if not md.mask_texture:
- col1.label(text="Vertex Group Mask:")
- col2.prop_search(md, "mask_vertex_group", ob, "vertex_groups", text="")
+ split = layout.split(percentage=0.4)
+ split.label(text="Vertex Group Mask:")
+ split.prop_search(md, "mask_vertex_group", ob, "vertex_groups", text="")
if not md.mask_vertex_group:
- col1.label(text="Texture Mask:")
- col2.template_ID(md, "mask_texture", new="texture.new")
+ split = layout.split(percentage=0.4)
+ split.label(text="Texture Mask:")
+ split.template_ID(md, "mask_texture", new="texture.new")
if md.mask_texture:
split = layout.split()
col = split.column()