[Bf-blender-cvs] [0b7c2ef28b5] greasepencil-object: Smooth Strength and Thickness too

Antonio Vazquez noreply at git.blender.org
Mon Nov 13 18:13:01 CET 2017


Commit: 0b7c2ef28b5c4ea9df07219c93332ed41a82333f
Author: Antonio Vazquez
Date:   Mon Nov 13 18:12:52 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rB0b7c2ef28b5c4ea9df07219c93332ed41a82333f

Smooth Strength and Thickness too

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

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 d98c5335013..394dcb59b89 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1137,8 +1137,9 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
 			float reduce = 0.0f;
 			for (int r = 0; r < brush->draw_smoothlvl; ++r) {
 				for (i = 0; i < gps->totpoints; i++) {
-					/* NOTE: No pressure smoothing, or else we get annoying thickness changes while drawing... */
 					BKE_gp_smooth_stroke(gps, i, brush->draw_smoothfac - reduce, false);
+					BKE_gp_smooth_stroke_strength(gps, i, brush->draw_smoothfac - reduce);
+					BKE_gp_smooth_stroke_thickness(gps, i, brush->draw_smoothfac - reduce);
 				}
 				reduce += 0.25f;  // reduce the factor
 			}



More information about the Bf-blender-cvs mailing list