GPencil: Enable subdiv for 2-point strokes.

It makes sense when adding points to a straight line, e.g. for creating thickness variation in later modifiers.
This commit is contained in:
2019-09-16 16:06:34 +08:00
committed by Antonio Vazquez
parent 345fb22ea3
commit 95b60634c7

View File

@@ -65,12 +65,16 @@ static void deformStroke(GpencilModifierData *md,
{
SubdivGpencilModifierData *mmd = (SubdivGpencilModifierData *)md;
/* It makes sense when adding points to a straight line */
/* e.g. for creating thickness variation in later modifiers. */
int minimum_vert = (mmd->flag | GP_SUBDIV_SIMPLE) ? 2 : 3;
if (!is_stroke_affected_by_modifier(ob,
mmd->layername,
mmd->materialname,
mmd->pass_index,
mmd->layer_pass,
3,
minimum_vert,
gpl,
gps,
mmd->flag & GP_SUBDIV_INVERT_LAYER,