Cleanup: clang tidy

This commit is contained in:
Jacques Lucke 2020-10-19 11:34:26 +02:00
parent 850944e6cd
commit bd15efefd2
1 changed files with 3 additions and 5 deletions

View File

@ -7196,11 +7196,9 @@ static float geometry_collide_offset(BevelParams *bp, EdgeHalf *eb)
if (bp->offset_type == BEVEL_AMT_PERCENT) {
return bp->offset > 50.0f ? 50.0f : 100.f;
}
else {
/* This is only right sometimes. The exact answer is very hard to calculate. */
float blen = BM_edge_calc_length(eb->e);
return bp->offset > blen / 2.0f ? blen / 2.0f : blen;
}
/* This is only right sometimes. The exact answer is very hard to calculate. */
float blen = BM_edge_calc_length(eb->e);
return bp->offset > blen / 2.0f ? blen / 2.0f : blen;
}
return no_collide_offset;
}