Fix T96585: Intersect(Knife) tool is selecting wrong edges

Regression caused by [0] which flushed selection from vertices -> edges,
causing additional edges to be selected. Now selected is flushed based
on the mode, instead of all elements. Note that these function names
could be improved to make it clearer how these flushing functions are
different.

Also skip flushing unless selection is performed.

[0]: 55c82d8380
This commit is contained in:
Campbell Barton
2022-05-06 16:08:33 +10:00
parent 929a210608
commit 693aa573db

View File

@@ -99,8 +99,8 @@ static void edbm_intersect_select(BMEditMesh *em, struct Mesh *me, bool do_selec
BM_edge_select_set(em->bm, e, true);
}
}
EDBM_selectmode_flush(em);
}
EDBM_select_flush(em);
}
EDBM_update(me,