From d924e31b421a51fed343fbd2a17291cfd289d9bc Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 20 Mar 2020 15:37:56 +0100 Subject: 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 --- source/blender/makesdna/DNA_gpencil_modifier_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna') 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; -- cgit v1.2.3