[Bf-blender-cvs] [dfb9df8] GPencil_Editing_Stage3: GPencil Sculpt: Tweaked how strength values are interpreted for thickness brushes to be more controllable

Joshua Leung noreply at git.blender.org
Sat Jun 13 02:45:08 CEST 2015


Commit: dfb9df857814e68ad8fc9c60420213af51acaac3
Author: Joshua Leung
Date:   Sat Jun 13 01:16:21 2015 +1200
Branches: GPencil_Editing_Stage3
https://developer.blender.org/rBdfb9df857814e68ad8fc9c60420213af51acaac3

GPencil Sculpt: Tweaked how strength values are interpreted for thickness brushes to be more controllable

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_brush.c b/source/blender/editors/gpencil/gpencil_brush.c
index 8fbe01e..5344a20 100644
--- a/source/blender/editors/gpencil/gpencil_brush.c
+++ b/source/blender/editors/gpencil/gpencil_brush.c
@@ -235,7 +235,13 @@ static bool gp_brush_thickness_apply(tGP_BrushEditData *gso, bGPDstroke *gps, in
                                      const int x0, const int y0)
 {
 	bGPDspoint *pt = gps->points + i;
-	float inf = gp_brush_influence_calc(gso, radius, mx, my, x0, y0);
+	float inf;
+	
+	/* Compute strength of effect
+	 * - We divide the strength by 10, so that users can set "sane" values.
+	 *   Otherwise, good default values are in the range of 0.093
+	 */
+	inf = gp_brush_influence_calc(gso, radius, mx, my, x0, y0) / 10.0f;
 	
 	/* apply */
 	// XXX: this is much too strong, and it should probably do some smoothing with the surrounding stuff




More information about the Bf-blender-cvs mailing list