Fix T53131: Incorrect vert-edge angle calculation
authorCampbell Barton <ideasman42@gmail.com>
Fri, 27 Oct 2017 02:10:36 +0000 (13:10 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 27 Oct 2017 02:10:36 +0000 (13:10 +1100)
Vertex w/ a single edge wasn't detected

source/blender/bmesh/intern/bmesh_queries.c

index 1f94423899905ded124b21fae52f0337f0a15b5b..32f726df01d03a82d3dbc113922c25ae8aac4e30 100644 (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)))
        {