[Bf-blender-cvs] [6d923381797] greasepencil-object: GP: Remove hardcode factor for cutter point

Antonioya noreply at git.blender.org
Fri Jan 4 22:19:21 CET 2019


Commit: 6d923381797707fab453c7c21b484cad7dcf60ab
Author: Antonioya
Date:   Fri Jan 4 22:19:13 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB6d923381797707fab453c7c21b484cad7dcf60ab

GP: Remove hardcode factor for cutter point

This made the intersection to be over original point.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 0027d0d76a2..34baedaf46d 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -2224,7 +2224,7 @@ int ED_gpencil_select_stroke_segment(
 
 		if (hit_b) {
 			f = gp_calc_factor(p2d_a1, p2d_a2, r_hit2d);
-			interp_v3_v3v3(r_hitb, &pta1->x, &pta2->x, f + 0.1f);
+			interp_v3_v3v3(r_hitb, &pta1->x, &pta2->x, f);
 			if (f > min_factor) {
 				hit_pointb = pta1;
 			}



More information about the Bf-blender-cvs mailing list