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.
This commit is contained in:
Dalai Felinto 2018-10-26 18:29:42 -03:00
parent 009bfbf408
commit cd36d3f4d3
1 changed files with 1 additions and 1 deletions

View File

@ -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));