GP: Set cyclic to OFF when use cutter

When cut a stroke, the cyclic must be set to off because keep it gets very weird results.
This commit is contained in:
Antonio Vazquez 2019-01-25 20:01:11 +01:00
parent 8bd55cf3d5
commit 16c3425fe6
1 changed files with 2 additions and 0 deletions

View File

@ -4005,6 +4005,8 @@ static int gpencil_cutter_lasso_select(
for (bGPDstroke *gps = gpf->strokes.first; gps; gps = gpsn) {
gpsn = gps->next;
if (gps->flag & GP_STROKE_SELECT) {
/* disable cyclic */
gps->flag &= ~GP_STROKE_CYCLIC;
gpencil_cutter_dissolve(gpl, gps);
}
}