diff options
author | Cody Winchester <CodyWinch> | 2020-02-12 14:38:43 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-02-12 14:43:02 +0300 |
commit | cc085e228de70563ed0b6870d23ef3bb531c4798 (patch) | |
tree | 8fa049420283d4ce8842d7ecb3833aa5ccf11cb0 /source/blender/modifiers/intern/MOD_weightvg_util.h | |
parent | 24b5d5aa61682d44376d28097fc0a8f9c5c397bb (diff) |
Modifiers: Vertex Weight Modifiers add invert vgroup option
Adds the invert vgroup mask option to the Vertex Weight modifiers.
These 3 modifiers share the same functions so they needed to be modified at the same time. They are all setup the same with the invert vgroup option being added. I had to add a flag to the Mix modifier but the others I use the existing flags.
Differential Revision: https://developer.blender.org/D6819
Diffstat (limited to 'source/blender/modifiers/intern/MOD_weightvg_util.h')
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvg_util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvg_util.h b/source/blender/modifiers/intern/MOD_weightvg_util.h index 08967b7400d..cb327397785 100644 --- a/source/blender/modifiers/intern/MOD_weightvg_util.h +++ b/source/blender/modifiers/intern/MOD_weightvg_util.h @@ -69,7 +69,8 @@ void weightvg_do_mask(const ModifierEvalContext *ctx, const int tex_use_channel, const int tex_mapping, Object *tex_map_object, - const char *tex_uvlayer_name); + const char *tex_uvlayer_name, + bool invert_vgroup_mask); void weightvg_update_vg(struct MDeformVert *dvert, int defgrp_idx, |