diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2013-04-24 16:39:37 +0400 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2013-04-24 16:39:37 +0400 |
commit | d2daa230d61f4c35682c7345494ae41d1034a1b0 (patch) | |
tree | 794d0c06905596c7fc08b3465d0a3bf6866dc834 /source/blender/modifiers | |
parent | 245a175a003e88157a906fb444fa1f38918ada38 (diff) |
Fix bug #34611: bevel overlap limit
The previous fix limited overlap, but is sometimes
too conservative, and artists want way to turn off
the limiting, so added 'Allow Overlap' option to
modifier.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_bevel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_bevel.c b/source/blender/modifiers/intern/MOD_bevel.c index b14c4ba0ad1..2d7a7b36a8f 100644 --- a/source/blender/modifiers/intern/MOD_bevel.c +++ b/source/blender/modifiers/intern/MOD_bevel.c @@ -111,6 +111,7 @@ static DerivedMesh *applyModifier(ModifierData *md, struct Object *ob, BevelModifierData *bmd = (BevelModifierData *) md; const float threshold = cosf((bmd->bevel_angle + 0.00001f) * (float)M_PI / 180.0f); const bool vertex_only = bmd->flags & BME_BEVEL_VERT; + const bool do_clamp = !(bmd->flags & BME_BEVEL_OVERLAP_OK); bm = DM_to_bmesh(dm); @@ -160,7 +161,7 @@ static DerivedMesh *applyModifier(ModifierData *md, struct Object *ob, } BM_mesh_bevel(bm, bmd->value, bmd->res, - vertex_only, bmd->lim_flags & BME_BEVEL_WEIGHT, true, + vertex_only, bmd->lim_flags & BME_BEVEL_WEIGHT, do_clamp, dvert, vgroup); result = CDDM_from_bmesh(bm, TRUE); |