fix for BM_mesh_edgeloops_find(), could give edge loops with one vert. (caused bridge...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 17 May 2013 12:11:34 +0000 (12:11 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 17 May 2013 12:11:34 +0000 (12:11 +0000)
source/blender/bmesh/intern/bmesh_edgeloop.c

index 7c5b20381abe99dba7f1268305b5c35de67986b5..e095cfd1534bf65340dc5f8f36d27c221d0a4c19 100644 (file)
@@ -156,7 +156,7 @@ int BM_mesh_edgeloops_find(BMesh *bm, ListBase *r_eloops,
                        /* add both directions */
                        if (bm_loop_build(el_store, e->v1, e->v2,  1) &&
                            bm_loop_build(el_store, e->v2, e->v1, -1) &&
-                           el_store->verts.first)
+                           el_store->len > 1)
                        {
                                BLI_addtail(r_eloops, el_store);
                                BM_elem_flag_disable(e, BM_ELEM_INTERNAL_TAG);