diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-06 09:08:33 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-06 09:18:04 +0300 |
commit | 693aa573db4068f5c8c30f0958cb8850c806a285 (patch) | |
tree | b1655e9cdce527e2c7e1df991be7679592313cc8 | |
parent | 929a21060851e75b18a54a8c388b472d77ce4abb (diff) |
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]: 55c82d8380ea3fd37a9d966fad10f42cc5b365d5
-rw-r--r-- | source/blender/editors/mesh/editmesh_intersect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_intersect.c b/source/blender/editors/mesh/editmesh_intersect.c index 2642a613e92..166eb40a7db 100644 --- a/source/blender/editors/mesh/editmesh_intersect.c +++ b/source/blender/editors/mesh/editmesh_intersect.c @@ -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, |