diff options
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bevel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index 268b89e8d90..949fecba94d 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -7331,6 +7331,15 @@ void BM_mesh_bevel(BMesh *bm, if (profile >= 0.950f) { /* r ~ 692, so PRO_SQUARE_R is 1e4 */ bp.pro_super_r = PRO_SQUARE_R; } + else if (fabsf(bp.pro_super_r - PRO_CIRCLE_R) < 1e-4) { + bp.pro_super_r = PRO_CIRCLE_R; + } + else if (fabsf(bp.pro_super_r - PRO_LINE_R) < 1e-4) { + bp.pro_super_r = PRO_LINE_R; + } + else if (bp.pro_super_r < 1e-4) { + bp.pro_super_r = PRO_SQUARE_IN_R; + } if (bp.offset > 0) { /* primary alloc */ |