diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-13 13:57:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-13 13:57:19 +0400 |
commit | 6254cc1c70b06acd60131b9ae3b0993e258e4e33 (patch) | |
tree | 0e818c5cc59d174e21e1142b20021a1784f9ef41 /source/blender/modifiers/intern/MOD_bevel.c | |
parent | 143a654e6f5fdb1eca80b9b70f4a1470ed687551 (diff) |
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.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_bevel.c')
-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 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); |