Bevel vertex: fix rebuild of faces so they are connected when seg > 1.

This commit is contained in:
Howard Trickey 2013-01-21 13:31:16 +00:00
parent e224996f3d
commit 7d286d9a80

@ -1872,6 +1872,14 @@ static int bev_rebuild_polygon(BMesh *bm, BevelParams *bp, BMFace *f)
BLI_array_append(vv, bmv);
}
}
else if (bp->vertex_only && vm->mesh_kind == M_ADJ_SUBDIV && vm->seg > 1) {
BLI_assert(v->prev == vend);
i = vend->index;
for (k = vm->seg - 1; k > 0; k--) {
bmv = mesh_vert(vm, i, 0, k)->v;
BLI_array_append(vv, bmv);
}
}
v = v->prev;
BLI_array_append(vv, v->nv.v);
}