fix for crash with new bridge method used with invalid edge-loops.

This commit is contained in:
Campbell Barton
2013-05-12 15:24:02 +00:00
parent 97d2439077
commit 6c28e1d76a
2 changed files with 4 additions and 4 deletions

View File

@@ -150,14 +150,14 @@ 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))
bm_loop_build(el_store, e->v2, e->v1, -1) &&
el_store->verts.first)
{
BLI_addtail(r_eloops, el_store);
BM_elem_flag_disable(e, BM_ELEM_INTERNAL_TAG);
count++;
}
else {
BLI_remlink(r_eloops, el_store);
BM_edgeloop_free(el_store);
}
}

View File

@@ -3795,8 +3795,8 @@ void MESH_OT_bridge_edge_loops(wmOperatorType *ot)
};
/* identifiers */
ot->name = "Bridge Two Edge Loops";
ot->description = "Make faces between two edge loops";
ot->name = "Bridge Edge Loops";
ot->description = "Make faces between two or more edge loops";
ot->idname = "MESH_OT_bridge_edge_loops";
/* api callbacks */