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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user