[Bf-blender-cvs] [df289785b3c] blender2.8: GP: Delete invisible points when use soft eraser

Antonioya noreply at git.blender.org
Wed Sep 12 21:26:18 CEST 2018


Commit: df289785b3ce2fa9d45550346e410a66b664f8a5
Author: Antonioya
Date:   Wed Sep 12 21:16:54 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBdf289785b3ce2fa9d45550346e410a66b664f8a5

GP: Delete invisible points when use soft eraser

===================================================================

M	source/blender/editors/gpencil/gpencil_paint.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index c390a1069ed..0f6a4d6f280 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -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 {



More information about the Bf-blender-cvs mailing list