diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-06 14:02:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-06 14:02:16 +0300 |
commit | 50a1ad5bb32fd5705039c992956418cc0d520e33 (patch) | |
tree | b31517efe918ee5198c206fb19d345a14b1b231f /source/blender/bmesh | |
parent | 94e7ac5b97dd0b15a53d47c78672b8ed1e8a4bf1 (diff) |
Cleanup
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/tools/bmesh_bevel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bevel.c b/source/blender/bmesh/tools/bmesh_bevel.c index 6a8411dd189..3348afa3bfa 100644 --- a/source/blender/bmesh/tools/bmesh_bevel.c +++ b/source/blender/bmesh/tools/bmesh_bevel.c @@ -801,7 +801,7 @@ static bool offset_meet_edge(EdgeHalf *e1, EdgeHalf *e2, BMVert *v, float meetc /* find angle from dir1 to dir2 as viewed from vertex normal side */ ang = angle_normalized_v3v3(dir1, dir2); - if (fabs(ang) < BEVEL_GOOD_ANGLE) { + if (fabsf(ang) < BEVEL_GOOD_ANGLE) { if (r_angle) *r_angle = 0.0f; return false; @@ -812,7 +812,7 @@ static bool offset_meet_edge(EdgeHalf *e1, EdgeHalf *e2, BMVert *v, float meetc if (r_angle) *r_angle = ang; - if (fabs(ang - (float)M_PI) < BEVEL_GOOD_ANGLE) + if (fabsf(ang - (float)M_PI) < BEVEL_GOOD_ANGLE) return false; sinang = sinf(ang); @@ -1532,8 +1532,10 @@ static bool eh_on_plane(EdgeHalf *e) if (e->fprev && e->fnext) { dot = dot_v3v3(e->fprev->no, e->fnext->no); if (fabsf(dot) <= BEVEL_EPSILON || - fabsf(dot - 1.0f) <= BEVEL_EPSILON) + fabsf(dot - 1.0f) <= BEVEL_EPSILON) + { return true; + } } return false; } |