[Bf-blender-cvs] [6a20e2653ef] blender2.8: GP: Reduce factor of thickness for soft eraser

Antonioya noreply at git.blender.org
Wed Sep 12 17:06:45 CEST 2018


Commit: 6a20e2653effd3485505f8fb059aef3941212074
Author: Antonioya
Date:   Wed Sep 12 17:06:37 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB6a20e2653effd3485505f8fb059aef3941212074

GP: Reduce factor of thickness for 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 c57c45cdf34..c390a1069ed 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1464,8 +1464,8 @@ static void gp_stroke_eraser_dostroke(tGPsdata *p,
 							pt2->strength -= gp_stroke_eraser_calc_influence(p, mval, radius, pc2) * strength * 0.5f;
 							CLAMP_MIN(pt2->strength, 0.0f);
 
-							pt1->pressure -= gp_stroke_eraser_calc_influence(p, mval, radius, pc1) * strength * 0.50f;
-							pt2->pressure -= gp_stroke_eraser_calc_influence(p, mval, radius, pc2) * strength * 0.25f;
+							pt1->pressure -= gp_stroke_eraser_calc_influence(p, mval, radius, pc1) * strength * 0.10f;
+							pt2->pressure -= gp_stroke_eraser_calc_influence(p, mval, radius, pc2) * strength * 0.05f;
 
 							/* if invisible, delete point */
 							if ((pt1->strength <= GPENCIL_ALPHA_OPACITY_THRESH) || (pt1->pressure < cull_thresh)) {



More information about the Bf-blender-cvs mailing list