From 6254cc1c70b06acd60131b9ae3b0993e258e4e33 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 13 Dec 2011 09:57:19 +0000 Subject: 2 new bevel options for the operator and the modifier. * even offset, uses same shell distance method as solidify to give even with beveled faces. * distance offset, this is mostly for compatibility with the modifier in trunk which uses the bevel width as a distance rather then a percentage. at the moment this is awkward for the operator since it makes percent act differently where the 0-1 range doesnt make sense. still need to bring back more options from trunks bevel modifier. --- source/blender/modifiers/intern/MOD_bevel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/modifiers/intern/MOD_bevel.c') diff --git a/source/blender/modifiers/intern/MOD_bevel.c b/source/blender/modifiers/intern/MOD_bevel.c index 239b479472b..606b20d3ccd 100644 --- a/source/blender/modifiers/intern/MOD_bevel.c +++ b/source/blender/modifiers/intern/MOD_bevel.c @@ -149,7 +149,8 @@ static DerivedMesh *applyModifier(ModifierData *md, struct Object *ob, } } - BMO_CallOpf(bm, "bevel geom=%fe percent=%f", EDGE_MARK, bmd->value); + BMO_CallOpf(bm, "bevel geom=%fe percent=%f use_even=%i use_dist=%i", + EDGE_MARK, bmd->value, (bmd->flags & BME_BEVEL_EVEN)!=0, (bmd->flags & BME_BEVEL_DIST)!=0); BMO_pop(bm); BMEdit_RecalcTesselation(em); -- cgit v1.2.3