1
1

Fix T88803: GPencil Thickness modifier produces thicker lines

There was a double apply of the thickness due a bug in the fading new parameter.

Differential Revision: https://developer.blender.org/D11483
This commit is contained in:
2021-06-03 16:45:34 +02:00
parent 053082e9d8
commit f4e0a19d4f

View File

@@ -170,8 +170,10 @@ static void deformStroke(GpencilModifierData *md,
weight *= curvef;
}
float fac_begin = mmd->flag & GP_THICK_NORMALIZE ? 1 : mmd->thickness_fac;
target *= interpf(fac_begin, mmd->fading_end_factor, factor_depth);
/* Apply distance fading. */
if (mmd->flag & GP_THICK_FADING) {
target = interpf(target, mmd->fading_end_factor, factor_depth);
}
pt->pressure = interpf(target, pt->pressure, weight);