Bevel vertex: fix rebuild of faces so they are connected when seg > 1.
authorHoward Trickey <howard.trickey@gmail.com>
Mon, 21 Jan 2013 13:31:16 +0000 (13:31 +0000)
committerHoward Trickey <howard.trickey@gmail.com>
Mon, 21 Jan 2013 13:31:16 +0000 (13:31 +0000)
source/blender/bmesh/tools/bmesh_bevel.c

index 19518eac5c9b080d89210b92091eea431021db7a..7e89cec8a8d58b20fa1a262995f3ea0fcadcb5eb 100644 (file)
@@ -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);
                        }