Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-05-06 09:08:33 +0300
committerCampbell Barton <campbell@blender.org>2022-05-06 09:18:04 +0300
commit693aa573db4068f5c8c30f0958cb8850c806a285 (patch)
treeb1655e9cdce527e2c7e1df991be7679592313cc8 /source/blender/editors
parent929a21060851e75b18a54a8c388b472d77ce4abb (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
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/mesh/editmesh_intersect.c2
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,