Fix T63017: selection via lasso does not work properly in X-ray.
authormano-wii <germano.costa@ig.com.br>
Wed, 27 Mar 2019 19:48:12 +0000 (16:48 -0300)
committermano-wii <germano.costa@ig.com.br>
Wed, 27 Mar 2019 19:48:49 +0000 (16:48 -0300)
Probably missed in rB40f8ddf8297a.

source/blender/editors/space_view3d/view3d_select.c

index 097a9bb10d3a58fb73c1f31cb0ea1bd33664effc..cf57068a8d28a89bb6d7fb93640edbd9e07f8a09 100644 (file)
@@ -618,6 +618,7 @@ static void do_lasso_select_mesh__doSelectVert(void *userData, BMVert *eve, cons
        const int sel_op_result = ED_select_op_action_deselected(data->sel_op, is_select, is_inside);
        if (sel_op_result != -1) {
                BM_vert_select_set(data->vc->em->bm, eve, sel_op_result);
+               data->is_changed = true;
        }
 }
 static void do_lasso_select_mesh__doSelectEdge_pass0(
@@ -634,6 +635,7 @@ static void do_lasso_select_mesh__doSelectEdge_pass0(
        if (sel_op_result != -1) {
                BM_edge_select_set(data->vc->em->bm, eed, sel_op_result);
                data->is_done = true;
+               data->is_changed = true;
        }
 }
 static void do_lasso_select_mesh__doSelectEdge_pass1(
@@ -648,6 +650,7 @@ static void do_lasso_select_mesh__doSelectEdge_pass1(
        const int sel_op_result = ED_select_op_action_deselected(data->sel_op, is_select, is_inside);
        if (sel_op_result != -1) {
                BM_edge_select_set(data->vc->em->bm, eed, sel_op_result);
+               data->is_changed = true;
        }
 }
 
@@ -662,6 +665,7 @@ static void do_lasso_select_mesh__doSelectFace(void *userData, BMFace *efa, cons
        const int sel_op_result = ED_select_op_action_deselected(data->sel_op, is_select, is_inside);
        if (sel_op_result != -1) {
                BM_face_select_set(data->vc->em->bm, efa, sel_op_result);
+               data->is_changed = true;
        }
 }