Fix T53131: Incorrect vert-edge angle calculation

Vertex w/ a single edge wasn't detected
This commit is contained in:
Campbell Barton 2017-10-27 13:10:36 +11:00
parent d245d36074
commit 282af08fe2
Notes: blender-bot 2023-02-14 19:34:19 +01:00
Referenced by issue #53683, 2.79a release
Referenced by issue blender/blender-addons#53131, Incorrect angle measure with calc_edge_angle (bmesh vertex)
1 changed files with 1 additions and 0 deletions

View File

@ -1744,6 +1744,7 @@ float BM_vert_calc_edge_angle_ex(const BMVert *v, const float fallback)
if ((e1 = v->e) &&
(e2 = bmesh_disk_edge_next(e1, v)) &&
(e1 != e2) &&
/* make sure we come full circle and only have 2 connected edges */
(e1 == bmesh_disk_edge_next(e2, v)))
{