[Bf-blender-cvs] [c5131c95e7d] greasepencil-object: WIP: Readjust weight for stabilize

Antonio Vazquez noreply at git.blender.org
Fri Nov 10 20:12:27 CET 2017


Commit: c5131c95e7da571a6a8291a12b028f6b97066871
Author: Antonio Vazquez
Date:   Fri Nov 10 20:09:36 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rBc5131c95e7da571a6a8291a12b028f6b97066871

WIP: Readjust weight for stabilize

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

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 ab7e8d0ea05..8fe02bc8cf3 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -558,9 +558,9 @@ static void gp_smooth_buffer_point(bGPdata *gpd, bGPDbrush *brush)
 	 * point-1 and point to get smoother strokes. This reduces the jitter between
 	 * the previous point and the point that is being created.
 	 */
-	madd_v2_v2fl(sco, fpt, 0.20f); 
-	madd_v2_v2fl(sco, fpta, 0.50f);
-	madd_v2_v2fl(sco, fptb, 0.30f);
+	madd_v2_v2fl(sco, fpta, 0.20f);
+	madd_v2_v2fl(sco, fptb, 0.50f);
+	madd_v2_v2fl(sco, fpt, 0.30f);
 	interp_v2_v2v2(fptb, fptb, sco, inf);
 	copy_v2int_v2float(&ptb->x, fptb);



More information about the Bf-blender-cvs mailing list