[Bf-blender-cvs] [693aa573db4] blender-v3.2-release: Fix T96585: Intersect(Knife) tool is selecting wrong edges

Campbell Barton noreply at git.blender.org
Fri May 6 08:22:40 CEST 2022


Commit: 693aa573db4068f5c8c30f0958cb8850c806a285
Author: Campbell Barton
Date:   Fri May 6 16:08:33 2022 +1000
Branches: blender-v3.2-release
https://developer.blender.org/rB693aa573db4068f5c8c30f0958cb8850c806a285

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

===================================================================

M	source/blender/editors/mesh/editmesh_intersect.c

===================================================================

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,



More information about the Bf-blender-cvs mailing list