diff options
author | Rohan Rathi <rohanrathi08@gmail.com> | 2018-06-13 19:23:15 +0300 |
---|---|---|
committer | Rohan Rathi <rohanrathi08@gmail.com> | 2018-06-13 19:23:15 +0300 |
commit | 29221319716d6588a2ad27977a1a6d86dcd96c37 (patch) | |
tree | a9d721a560e742025dc8aced2f246ed46f1d6463 /source/blender/bmesh/tools/bmesh_bevel.c | |
parent | b5f67bfd831f02a65df931319782c8f579c17104 (diff) |
Corrected bevel of vertex by using profiles for curve of bevel
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_bevel.c')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bevel.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index 39ca5a2d1ca..0fdf3a8868c 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -3647,6 +3647,17 @@ static void bevel_build_rings(BevelParams *bp, BMesh *bm, BevVert *bv) odd = ns % 2; BLI_assert(n >= 3 && ns > 1); + /* Add support for profiles in vertex only in-plane bevels */ + if (bp->vertex_only) { + v = bv->vmesh->boundstart; + do { + Profile *pro = &v->profile; + pro->super_r = bp->pro_super_r; + copy_v3_v3(pro->midco, bv->v->co); + calculate_profile(bp, v); + v = v->next; + } while (v != bv->vmesh->boundstart); + } vpipe = pipe_test(bv); |