From 563670ff9e7421abc87095dab78e89ef23499253 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Sat, 27 Jun 2020 10:55:33 +0200 Subject: Fix T78336: Gpencil selection unstable The selection with the tweak tool was inprecise because it was using the bounding box and if the point was in a straight line in the border or in the corners it was very hard to select. For this tool is better don't use the bounding box check. --- source/blender/editors/gpencil/gpencil_select.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source/blender/editors/gpencil/gpencil_select.c') diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c index b3256628ab3..d698a9e2289 100644 --- a/source/blender/editors/gpencil/gpencil_select.c +++ b/source/blender/editors/gpencil/gpencil_select.c @@ -1483,14 +1483,6 @@ static int gpencil_select_exec(bContext *C, wmOperator *op) bGPDspoint *pt; int i; - /* Check boundbox to speedup. */ - float fmval[2]; - copy_v2fl_v2i(fmval, mval); - if (!ED_gpencil_stroke_check_collision( - &gsc, gps_active, fmval, radius, gpstroke_iter.diff_mat)) { - continue; - } - /* firstly, check for hit-point */ for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) { int xy[2]; -- cgit v1.2.3