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; }