fix for crash with new bridge method used with invalid edge-loops.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user