GPencil: Cleanup typo error

This commit is contained in:
Antonio Vazquez 2020-04-01 10:02:04 +02:00
parent 2ad0ae8dad
commit 59e001cbf6
3 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ static void deformStroke(GpencilModifierData *md,
}
/* Hardness (at stroke level). */
if (mmd->modify_color == GP_MODIFY_COLOR_HARDENESS) {
if (mmd->modify_color == GP_MODIFY_COLOR_HARDNESS) {
gps->hardeness *= mmd->hardeness;
CLAMP(gps->hardeness, 0.0f, 1.0f);

View File

@ -215,7 +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,
GP_MODIFY_COLOR_HARDNESS = 3,
} eModifyColorGpencil_Flag;
typedef enum eOpacityModesGpencil_Flag {

View File

@ -144,7 +144,7 @@ static const EnumPropertyItem modifier_modify_opacity_items[] = {
{GP_MODIFY_COLOR_BOTH, "BOTH", 0, "Stroke and Fill", "Modify fill and stroke colors"},
{GP_MODIFY_COLOR_STROKE, "STROKE", 0, "Stroke", "Modify stroke color only"},
{GP_MODIFY_COLOR_FILL, "FILL", 0, "Fill", "Modify fill color only"},
{GP_MODIFY_COLOR_HARDENESS, "HARDENESS", 0, "Hardness", "Modify stroke hardness"},
{GP_MODIFY_COLOR_HARDNESS, "HARDNESS", 0, "Hardness", "Modify stroke hardness"},
{0, NULL, 0, NULL, NULL},
};