From 808fa22a7ad8f954bda35dd07776154a24b884fe Mon Sep 17 00:00:00 2001 From: Cody Winchester Date: Mon, 3 Feb 2020 12:01:13 +0100 Subject: Warp Modifier add invert vgroup option Adds the invert vertex weights option to the Warp Modifier. Setup in the same way as the other modifiers. Uses the existing flag char that is labeled unused. Differential Revision: https://developer.blender.org/D6720 --- source/blender/makesdna/DNA_modifier_types.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_modifier_types.h') diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index a203e77ab26..39efe838bab 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -1300,7 +1300,6 @@ typedef struct WarpModifierData { char defgrp_name[64]; float strength; float falloff_radius; - /** Not used yet. */ char flag; char falloff_type; char _pad[6]; @@ -1308,6 +1307,11 @@ typedef struct WarpModifierData { #define MOD_WARP_VOLUME_PRESERVE 1 +/* WarpModifierData->flag */ +enum { + MOD_WARP_INVERT_VGROUP = (1 << 0), +}; + typedef enum { eWarp_Falloff_None = 0, eWarp_Falloff_Curve = 1, -- cgit v1.2.3