From 6bc36eb2b6d7ab0bb4e3108ac1ada669c0143a39 Mon Sep 17 00:00:00 2001 From: Squareys Date: Thu, 21 Apr 2016 15:22:33 +0200 Subject: [PATCH] Fix mistake while switching to new PI constants From previous pullrequest (https://github.com/assimp/assimp/pull/859), commit 7c0e40a3f4126ce336a6b1daa258e3ee1b6a25f5 introduced the error. Thanks @mosra for catching it! Signed-off-by: Squareys --- contrib/poly2tri/poly2tri/sweep/sweep.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/poly2tri/poly2tri/sweep/sweep.cc b/contrib/poly2tri/poly2tri/sweep/sweep.cc index f60e0d7a8..d3e35aebf 100644 --- a/contrib/poly2tri/poly2tri/sweep/sweep.cc +++ b/contrib/poly2tri/poly2tri/sweep/sweep.cc @@ -231,7 +231,7 @@ void Sweep::FillAdvancingFront(SweepContext& tcx, Node& n) while (node->next) { double angle = HoleAngle(*node); - if (angle > PI || angle < -PI_2) break; + if (angle > PI_2 || angle < -PI_2) break; Fill(tcx, *node); node = node->next; }