GPencil: Subdivide Cyclic section of strokes in modifier
When use subdivision modifier, the close section of the stroke must be subdivided too.
This commit is contained in:
parent
657e344351
commit
e296d58cf2
Notes:
blender-bot
2023-02-14 06:00:45 +01:00
Referenced by issue #80956, Grease Pencil: Subdivide Modifier does not subdivide one of the segments of a closed loop
|
@ -101,6 +101,11 @@ static void deformStroke(GpencilModifierData *md,
|
|||
}
|
||||
|
||||
BKE_gpencil_stroke_subdivide(gps, mmd->level, mmd->type);
|
||||
|
||||
/* If the stroke is cyclic, must generate the closing geometry. */
|
||||
if (gps->flag & GP_STROKE_CYCLIC) {
|
||||
BKE_gpencil_stroke_close(gps);
|
||||
}
|
||||
}
|
||||
|
||||
static void bakeModifier(struct Main *UNUSED(bmain),
|
||||
|
|
Loading…
Reference in New Issue