Bevel fix to clamping for percent type.

The clamp code is still very crude and over-conservative,
but was totally wrong for the percent amount type.
This commit is contained in:
Howard Trickey
2014-01-14 11:21:56 -05:00
parent 86616c675a
commit c5d3abc863

View File

@@ -3459,6 +3459,11 @@ static float bevel_limit_offset(BMesh *bm, BevelParams *bp)
bool vbeveled;
limited_offset = bp->offset;
if (bp->offset_type == BEVEL_AMT_PERCENT) {
if (limited_offset > 50.0f)
limited_offset = 50.0f;
return limited_offset;
}
BM_ITER_MESH (v, &v_iter, bm, BM_VERTS_OF_MESH) {
if (BM_elem_flag_test(v, BM_ELEM_TAG)) {
if (bp->vertex_only) {