GPencil: Fix potential error in interpolate frame

As now it is using a duplicated frame, the untag must be done before copying the frames.
This commit is contained in:
Antonio Vazquez 2020-12-18 15:57:10 +01:00
parent f3b50380f0
commit 1be465cccb
1 changed files with 3 additions and 2 deletions

View File

@ -483,14 +483,15 @@ static bool gpencil_interpolate_set_init_values(bContext *C, wmOperator *op, tGP
/* set interpolation weight */
tgpi->shift = RNA_float_get(op->ptr, "shift");
/* set layers */
gpencil_interpolate_set_points(C, tgpi);
/* Untag strokes to be sure nothing is pending due any canceled process. */
LISTBASE_FOREACH (bGPDlayer *, gpl, &tgpi->gpd->layers) {
gpencil_interpolate_untag_strokes(gpl);
}
/* Set layers */
gpencil_interpolate_set_points(C, tgpi);
return 1;
}