diff options
author | Quentin Wenger <matpi@protonmail.ch> | 2016-10-23 15:04:27 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-10-23 15:35:46 +0300 |
commit | e0a34e963fff4e569f6953325854b1c7acb6f1c6 (patch) | |
tree | fb2a602e910650c15908b83ad803c09601b70cb5 /source/blender/makesdna | |
parent | 35fde5ff7d848130c30f95c4d281bfc77ae91179 (diff) |
Displace modifier: add global/local space option for X/Y/Z/XYZ directions.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2309
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 8 |
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 9187b76f012..1398e9de76f 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -383,7 +383,7 @@ typedef struct DisplaceModifierData { int direction; char defgrp_name[64]; /* MAX_VGROUP_NAME */ float midlevel; - int pad; + int space; } DisplaceModifierData; /* DisplaceModifierData->direction */ @@ -404,6 +404,12 @@ enum { MOD_DISP_MAP_UV = 3, }; +/* DisplaceModifierData->space */ +enum { + MOD_DISP_SPACE_LOCAL = 0, + MOD_DISP_SPACE_GLOBAL = 1, +}; + typedef struct UVProjectModifierData { ModifierData modifier; |