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:
authorCody Winchester <CodyWinch>2020-02-12 13:04:20 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-02-12 13:05:35 +0300
commitcd57c9e310e2482298ac61fc9424551bbe6eb61c (patch)
tree543a9f4e956dcf7b9833ff998f9667e9c5b63e1f /source/blender/makesrna
parent0e15850a7eedbdf236e977c663efaceff23572e1 (diff)
Modifiers: Weld Modifier add invert vgroup option
Adds the invert vgroup option to the weld modifier. Differential Revision: https://developer.blender.org/D6818
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_modifier.c5
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 c6898120bfa..65963798e08 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -5717,6 +5717,11 @@ static void rna_def_modifier_weld(BlenderRNA *brna)
prop, "Vertex Group", "Vertex group name for selecting the affected areas");
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_WeldModifier_defgrp_name_set");
RNA_def_property_update(prop, 0, "rna_Modifier_update");
+
+ prop = RNA_def_property(srna, "invert_vertex_group", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag", MOD_WELD_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_datatransfer(BlenderRNA *brna)