diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-27 00:29:42 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-27 00:30:09 +0300 |
commit | cd36d3f4d367f5211e83a93887934b5a372d8fa3 (patch) | |
tree | f179ab58581284f2a9d10f4dfd3a6aab3928cafd /source/blender | |
parent | 009bfbf408c7ceec60639e279e28d14c726dcc81 (diff) |
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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |