[Bf-blender-cvs] [98d1b46417b] greasepencil-object: Fix wrong interpolation for fake events

Antonio Vazquez noreply at git.blender.org
Tue Feb 27 09:53:43 CET 2018


Commit: 98d1b46417bc950a15454043456af4db768db611
Author: Antonio Vazquez
Date:   Tue Feb 27 09:53:29 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB98d1b46417bc950a15454043456af4db768db611

Fix wrong interpolation for fake events

The distribution was not even and it was slightly moved because it was not necessary to copy point between segments.

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

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 147f0689bd3..2d013d4adce 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2663,7 +2663,6 @@ static void gpencil_add_missing_events(bContext *C, wmOperator *op, const wmEven
 		float n = 1.0f / slices;
 		for (int i = 1; i < slices; i++) {
 			interp_v2_v2v2(pt, a, b, n * i);
-			copy_v2_v2(a, pt);
 			sub_v2_v2v2(pt, b, pt);
 
 			/* create fake event */



More information about the Bf-blender-cvs mailing list