From cd36d3f4d367f5211e83a93887934b5a372d8fa3 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 26 Oct 2018 18:29:42 -0300 Subject: [PATCH] Fix lasso selection not working for lattices Regression introduced on e88e80a6. This was broken for both single and multi-objects. It is a typo that apparently slipt through testing, oh well. I'm glad I caught this, I just wished it would have been faster. --- source/blender/editors/space_view3d/view3d_select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index b29414dbe18..230bbd11450 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -716,7 +716,7 @@ static void do_lasso_select_curve(ViewContext *vc, const int mcords[][2], short static void do_lasso_select_lattice__doSelect(void *userData, BPoint *bp, const float screen_co[2]) { LassoSelectUserData *data = userData; - const bool is_select = bp->f1 | SELECT; + const bool is_select = bp->f1 & SELECT; const bool is_inside = ( BLI_rctf_isect_pt_v(data->rect_fl, screen_co) && BLI_lasso_is_point_inside(data->mcords, data->moves, screen_co[0], screen_co[1], IS_CLIPPED));