Skip to content

Commit 6bc36eb

Browse files
committed
Fix mistake while switching to new PI constants
From previous pullrequest (assimp#859), commit 7c0e40a introduced the error. Thanks @mosra for catching it! Signed-off-by: Squareys <[email protected]>
1 parent 6107ead commit 6bc36eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/poly2tri/poly2tri/sweep/sweep.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void Sweep::FillAdvancingFront(SweepContext& tcx, Node& n)
231231

232232
while (node->next) {
233233
double angle = HoleAngle(*node);
234-
if (angle > PI || angle < -PI_2) break;
234+
if (angle > PI_2 || angle < -PI_2) break;
235235
Fill(tcx, *node);
236236
node = node->next;
237237
}

0 commit comments

Comments
 (0)