[Bf-blender-cvs] [23656a5] GPencil_Editing_Stage3: GPencil Eraser: Some tweaks to eraser strength
Joshua Leung
noreply at git.blender.org
Sun Dec 13 01:08:08 CET 2015
Commit: 23656a54fd61ba6148463cc3de99867010402b8b
Author: Joshua Leung
Date: Sun Dec 13 12:46:37 2015 +1300
Branches: GPencil_Editing_Stage3
https://developer.blender.org/rB23656a54fd61ba6148463cc3de99867010402b8b
GPencil Eraser: Some tweaks to eraser strength
Damping factors make the eraser too hard to use in general cases, so leaving as-is.
===================================================================
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 c5a92c4..525d189 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) : 1.0f;
+ const float cull_thresh = (gpl->thickness) ? 1.0f / ((float)gpl->thickness) : 0.01f;
/* 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