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-06 13:46:41 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-02-06 13:51:06 +0300
commit8768cd6a6a98a710ed2b6d8b257c43dd0e6e58ee (patch)
tree547f381fdc3ff1e6d3e2be18fb95ef00e4e1cb71 /source/blender/makesdna/DNA_modifier_types.h
parent2abe733771fed2f3a8457f42045b043b8a9bcfec (diff)
Curve Modifier add invert vgroup option
Adds the invert vertex group option to the Curve modifier. Adds a short flag and char pad to the Curve modifier DNA. Passes the flag into the curve_deform_verts function as the weight values are found there and not in the modifiers .c file. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D6746
Diffstat (limited to 'source/blender/makesdna/DNA_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_modifier_types.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h
index 631a995c743..135ddd8f62f 100644
--- a/source/blender/makesdna/DNA_modifier_types.h
+++ b/source/blender/makesdna/DNA_modifier_types.h
@@ -199,9 +199,15 @@ typedef struct CurveModifierData {
char name[64];
/** Axis along which curve deforms. */
short defaxis;
- char _pad[6];
+ short flag;
+ char _pad[4];
} CurveModifierData;
+/* Curve modifier flags */
+enum {
+ MOD_CURVE_INVERT_VGROUP = (1 << 0),
+};
+
/* CurveModifierData->defaxis */
enum {
MOD_CURVE_POSX = 1,