[Bf-blender-cvs] [cd36d3f4d36] blender2.8: Fix lasso selection not working for lattices
Dalai Felinto
noreply at git.blender.org
Fri Oct 26 23:32:00 CEST 2018
Commit: cd36d3f4d367f5211e83a93887934b5a372d8fa3
Author: Dalai Felinto
Date: Fri Oct 26 18:29:42 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBcd36d3f4d367f5211e83a93887934b5a372d8fa3
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.
===================================================================
M source/blender/editors/space_view3d/view3d_select.c
===================================================================
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));
More information about the Bf-blender-cvs
mailing list