Skip to content

Commit

Permalink
fix: auto holes may stuck in loop
Browse files Browse the repository at this point in the history
Fix potential issue with infinite loop during `PlantingSeedStep` with `AutoHolesAndBoundary`.
  • Loading branch information
andywiecko committed Sep 3, 2024
1 parent 3889096 commit dbcfeb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Runtime/Triangulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2217,12 +2217,14 @@ private void PlantAuto(Allocator allocator)
if (!heVisited[ohe])
{
heQueue.Enqueue(ohe);
heVisited[ohe] = true;
}

ohe = NextHalfedge(ohe);
if (!heVisited[ohe])
{
heQueue.Enqueue(ohe);
heVisited[ohe] = true;
}
}
}
Expand Down

0 comments on commit dbcfeb3

Please sign in to comment.