GP: Delete invisible points when use soft eraser

This commit is contained in:
Antonio Vazquez 2018-09-12 21:16:54 +02:00
parent 32a461adf2
commit df289785b3
1 changed files with 2 additions and 0 deletions

View File

@ -1470,9 +1470,11 @@ static void gp_stroke_eraser_dostroke(tGPsdata *p,
/* if invisible, delete point */
if ((pt1->strength <= GPENCIL_ALPHA_OPACITY_THRESH) || (pt1->pressure < cull_thresh)) {
pt1->flag |= GP_SPOINT_TAG;
do_cull = true;
}
if ((pt2->strength <= GPENCIL_ALPHA_OPACITY_THRESH) || (pt2->pressure < cull_thresh)) {
pt2->flag |= GP_SPOINT_TAG;
do_cull = true;
}
}
else {