diff options
Diffstat (limited to 'source/blender/freestyle/intern/geometry')
-rw-r--r-- | source/blender/freestyle/intern/geometry/GeomUtils.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/freestyle/intern/geometry/GeomUtils.cpp b/source/blender/freestyle/intern/geometry/GeomUtils.cpp index 4c4f12faaba..dbd792852ad 100644 --- a/source/blender/freestyle/intern/geometry/GeomUtils.cpp +++ b/source/blender/freestyle/intern/geometry/GeomUtils.cpp @@ -514,9 +514,8 @@ intersection_test intersectRayPlane(const Vec3r &orig, if (fabs((norm * orig) + d) <= epsilon) { return COINCIDENT; // plane and ray are coincident } - else { - return COLINEAR; - } + + return COLINEAR; } t = -(d + (norm * orig)) / denom; @@ -766,9 +765,8 @@ inline bool intersect2dSegPoly(Vec2r *seg, Vec2r *poly, unsigned n) if (N < 0) { return false; } - else { - continue; - } + + continue; } t = N / D; |