diff options
author | Thomas Dinges <blender@dingto.org> | 2012-03-26 02:14:21 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2012-03-26 02:14:21 +0400 |
commit | aede928bdc7902bb81ebb00b286dc5064cf54dd6 (patch) | |
tree | c85380cf5bcf06bcc7c3162dc661083571d75322 /source/blender/makesrna/intern/rna_modifier.c | |
parent | c379b78d8a00a0960346656d3e38aacd56974572 (diff) |
Patch: [#30652] Influence slider for Lattice Modifier
* This patch adds a influence slider for the lattice modifier, which affects the strength of the deformation.
Patch by Patrick Boelens (senshi), thanks a lot!
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index e40ed254dba..dae9c0ca044 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -960,6 +960,12 @@ static void rna_def_modifier_lattice(BlenderRNA *brna) "Name of Vertex Group which determines influence of modifier per point"); RNA_def_property_string_funcs(prop, NULL, NULL, "rna_LatticeModifier_vgroup_set"); RNA_def_property_update(prop, 0, "rna_Modifier_update"); + + prop = RNA_def_property(srna, "influence", PROP_FLOAT, PROP_NONE); + RNA_def_property_range(prop, -FLT_MAX, FLT_MAX); + RNA_def_property_ui_range(prop, 0, 1, 10, 2); + RNA_def_property_ui_text(prop, "Influence", "Strength of modifier effect"); + RNA_def_property_update(prop, 0, "rna_Modifier_update"); } static void rna_def_modifier_curve(BlenderRNA *brna) |