Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2013-04-24 16:39:37 +0400
committerHoward Trickey <howard.trickey@gmail.com>2013-04-24 16:39:37 +0400
commitd2daa230d61f4c35682c7345494ae41d1034a1b0 (patch)
tree794d0c06905596c7fc08b3465d0a3bf6866dc834 /source/blender/modifiers
parent245a175a003e88157a906fb444fa1f38918ada38 (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.c3
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);