Commit: 40c13d2a7aa1c55d6bd3746248bef06e327dd7cc
Author: Antonio Vazquez
Date:   Fri Mar 2 14:15:09 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB40c13d2a7aa1c55d6bd3746248bef06e327dd7cc

Small change to capture algorithm

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

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 e9f2f1c5155..7dc8b347523 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2678,7 +2678,7 @@ static void gpencil_add_missing_events(bContext *C, 
wmOperator *op, const wmEven
        float dist = len_v2v2(a, b);
 
        /* for very small distances, add a half way point */
-       if (dist < 2.0f) {
+       if (dist <= 2.0f) {
                interp_v2_v2v2(pt, a, b, 0.5f);
                sub_v2_v2v2(pt, b, pt);
                /* create fake event */

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to