diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-03-20 17:37:56 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-03-21 11:48:18 +0300 |
commit | d924e31b421a51fed343fbd2a17291cfd289d9bc (patch) | |
tree | 674c93c2d214c027ebc1573858d673682533c746 /source/blender/makesdna/DNA_gpencil_modifier_types.h | |
parent | a22cd6b6a95138d73e9e23f7ac0d40de17a5a25f (diff) |
GPencil: New Hardeness mode for Opacity modifier
Add new option to change the stroke hardeness. This option works at stroke level, not at point level.
Also replaced the "Both" name mode by "Stroke and Fill".
Differential Revision: https://developer.blender.org/D7195
Diffstat (limited to 'source/blender/makesdna/DNA_gpencil_modifier_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_gpencil_modifier_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_gpencil_modifier_types.h b/source/blender/makesdna/DNA_gpencil_modifier_types.h index bc7873adb70..f98ec281011 100644 --- a/source/blender/makesdna/DNA_gpencil_modifier_types.h +++ b/source/blender/makesdna/DNA_gpencil_modifier_types.h @@ -215,6 +215,7 @@ typedef enum eModifyColorGpencil_Flag { GP_MODIFY_COLOR_BOTH = 0, GP_MODIFY_COLOR_STROKE = 1, GP_MODIFY_COLOR_FILL = 2, + GP_MODIFY_COLOR_HARDENESS = 3, } eModifyColorGpencil_Flag; typedef enum eOpacityModesGpencil_Flag { @@ -272,7 +273,7 @@ typedef struct OpacityGpencilModifierData { /** Custom index for passes. */ int layer_pass; - char _pad1[4]; + float hardeness; struct CurveMapping *curve_intensity; } OpacityGpencilModifierData; |