diff options
author | Cody Winchester <CodyWinch> | 2020-02-12 12:34:35 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-02-12 12:34:35 +0300 |
commit | e32457952b45e5df7c3fc7d3e948e1403c7452da (patch) | |
tree | d6b8bbf09bab31a3d43ae8be4a67b0cf1bdc422e /source/blender/makesrna | |
parent | 1f28af6a79994154a66a341baea6b43441e3c395 (diff) |
Modifiers: Hook Modifier add invert vgroup option
Adds the invert group optin to the hook modifier.
Differential Revision: https://developer.blender.org/D6817
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 0d953728c5e..c6898120bfa 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -2550,6 +2550,11 @@ static void rna_def_modifier_hook(BlenderRNA *brna) func, "indices", 1, NULL, INT_MIN, INT_MAX, "", "Vertex Indices", 0, INT_MAX); RNA_def_property_array(parm, RNA_MAX_ARRAY_LENGTH); RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); + + prop = RNA_def_property(srna, "invert_vertex_group", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_HOOK_INVERT_VGROUP); + RNA_def_property_ui_text(prop, "Invert", "Invert vertex group influence"); + RNA_def_property_update(prop, 0, "rna_Modifier_update"); } static void rna_def_modifier_softbody(BlenderRNA *brna) |