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:
parent
f3b50380f0
commit
1be465cccb
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue