Fix T101741: GPencil Outline modifier removes unexpectedly strokes

The stroke could be tagged before modifier and was removed due  the tag.

Now, the tag is reset before to avoid this problem.
This commit is contained in:
Antonio Vazquez 2022-10-11 11:20:39 +02:00
parent 2bacf1cb26
commit 2590626e77
Notes: blender-bot 2023-02-14 04:20:36 +01:00
Referenced by issue #101741, Gpencil: Outline modifier making some strokes disappear
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ static void generateStrokes(GpencilModifierData *md, Depsgraph *depsgraph, Objec
BKE_gpencil_layer_transform_matrix_get(depsgraph, ob, gpl, diff_mat);
LISTBASE_FOREACH_MUTABLE (bGPDstroke *, gps, &gpf->strokes) {
gps->flag &= ~GP_STROKE_TAG;
convert_stroke(md, ob, gpl, gpf, gps, viewmat, diff_mat);
}
}