diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2011-09-05 20:16:00 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2011-09-05 20:16:00 +0400 |
commit | 4393df93202198b5eaaff438e18060c66b98928d (patch) | |
tree | e6f045ff5c0e5a6e676cf93cf8bc6c4c41431b50 /release | |
parent | cc906e0e2a1de9b19c6cefa1167332f348bb9e0f (diff) |
VGroup Modifiers: added mapping options to proximity and edit.
*Added Smooth/Sharp/Root/etc. mappings to WeightVGEdit modifier, in addition to custom curve one.
*Added Smooth/Sharp/Root/etc. mappings to WeightVGProximity modifier, without the custom curve one!
*Factorized the common mapping code into MOD_weightvg_util.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_modifier.py | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index a7e87c6ab62..8e7f50cd6f2 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -779,32 +779,11 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel): col.label(text="Default Weight:") col.prop(md, "default_weight", text="") -# layout.prop(md, "use_map") -# if md.use_map: -# split = layout.split() -# col = split.column() -# col.label("Input:") -# col.label("Output:") -# col = split.column() -# col.prop(md, "map_input_low", text="Min") -# col.prop(md, "map_output_low", text="Min") -# col = split.column() -# col.prop(md, "map_input_high", text="Max") -# col.prop(md, "map_output_high", text="Max") - - layout.prop(md, "use_map_curve") - if md.use_map_curve: + layout.prop(md, "mapping_mode") + if md.mapping_mode == 'CURVE': col = layout.column() col.template_curve_mapping(md, "map_curve") -# layout.prop(md, "use_reverse") - -# layout.prop(md, "use_clamp") -# if md.use_clamp: -# row = layout.row() -# row.prop(md, "clamp_weight_min") -# row.prop(md, "clamp_weight_max") - row = layout.row() row.prop(md, "use_add") row.prop(md, "use_remove") @@ -864,6 +843,8 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel): row.prop(md, "min_dist") row.prop(md, "max_dist") + layout.prop(md, "mapping_mode") + # Common mask options… layout.separator() self.weight_vg_mask(layout, ob, md) |