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:
authorCampbell Barton <ideasman42@gmail.com>2018-01-09 06:59:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-01-09 07:09:55 +0300
commit6554207841a452cc58857232837740746a1e8b80 (patch)
treed904fb81f7b9321fb7a9b3fdb66c6b4db01107b6 /source/blender/makesdna
parent850f73638ce96ba87e1fbb1b7185f9021d857e8f (diff)
Add deform axis for Simple Deform modifier
D2989 by @dmarra w/ own edits
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_modifier_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h
index fc0bf59518c..f7136e6e438 100644
--- a/source/blender/makesdna/DNA_modifier_types.h
+++ b/source/blender/makesdna/DNA_modifier_types.h
@@ -868,8 +868,8 @@ typedef struct SimpleDeformModifierData {
char mode; /* deform function */
char axis; /* lock axis (for taper and strech) */
+ char deform_axis; /* axis to perform the deform on (default is X, but can be overridden by origin */
char flag;
- char pad;
} SimpleDeformModifierData;
@@ -889,6 +889,7 @@ enum {
enum {
MOD_SIMPLEDEFORM_LOCK_AXIS_X = (1 << 0),
MOD_SIMPLEDEFORM_LOCK_AXIS_Y = (1 << 1),
+ MOD_SIMPLEDEFORM_LOCK_AXIS_Z = (1 << 2),
};
typedef struct ShapeKeyModifierData {