diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-29 03:44:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-29 03:44:13 +0300 |
commit | cba5d382560951ad47b3bf155c4bd3a3e80ee257 (patch) | |
tree | d6151b954f4e356400cf569655e43414beabd469 /source | |
parent | 3e5091bb2148a9fd0b950e3f1b9ebe52ba60ff8d (diff) | |
parent | 213f8294b5c801c367fbddd6c1b4e6656908e71e (diff) |
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_walkers_impl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_walkers_impl.c b/source/blender/bmesh/intern/bmesh_walkers_impl.c index 35350383e49..c23551ecca7 100644 --- a/source/blender/bmesh/intern/bmesh_walkers_impl.c +++ b/source/blender/bmesh/intern/bmesh_walkers_impl.c @@ -852,6 +852,10 @@ static void bmw_EdgeLoopWalker_begin(BMWalker *walker, void *data) BM_vert_edge_count_nonwire(e->v1), BM_vert_edge_count_nonwire(e->v2), }; + const int vert_face_count[2] = { + BM_vert_face_count(e->v1), + BM_vert_face_count(e->v2), + }; v = e->v1; @@ -927,7 +931,11 @@ static void bmw_EdgeLoopWalker_begin(BMWalker *walker, void *data) * doesn't differentiate between the number of sides of faces opposite `f_hub`, * only that each of the connected faces share an edge. */ - if ((lwalk->is_boundary == false) && (vert_edge_count[0] == 3 || vert_edge_count[1] == 3)) { + if ((lwalk->is_boundary == false) && + /* Without checking the face count, the 3 edges could be this edge + * plus two boundary edges (which would not be stepped over), see T84906. */ + ((vert_edge_count[0] == 3 && vert_face_count[0] == 3) || + (vert_edge_count[1] == 3 && vert_face_count[1] == 3))) { BMIter iter; BMFace *f_iter; BMFace *f_best = NULL; |