[Bf-blender-cvs] [cf89805] GPencil_Editing_Stage3: Revert previous eraser tweak - It made using the mouse to erase too difficult

Joshua Leung noreply at git.blender.org
Sun Dec 13 08:30:02 CET 2015


Commit: cf8980559fdc2e9731d9229512a554212173ea4f
Author: Joshua Leung
Date:   Sun Dec 13 20:29:47 2015 +1300
Branches: GPencil_Editing_Stage3
https://developer.blender.org/rBcf8980559fdc2e9731d9229512a554212173ea4f

Revert previous eraser tweak - It made using the mouse to erase too difficult

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

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 525d189..c5a92c4 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -827,7 +827,7 @@ static void gp_stroke_eraser_dostroke(tGPsdata *p,
 		/* Pressure threshold at which stroke should be culled: Calculated as pressure value
 		 * below which we would have invisible strokes
 		 */
-		const float cull_thresh = (gpl->thickness) ?  1.0f / ((float)gpl->thickness)  : 0.01f;
+		const float cull_thresh = (gpl->thickness) ?  1.0f / ((float)gpl->thickness)  : 1.0f;
 		
 		/* Amount to decrease the pressure of each point with each stroke */
 		// TODO: Fetch from toolsettings, or compute based on thickness instead?




More information about the Bf-blender-cvs mailing list