This commit is contained in:
Ryan Oldenburg 2021-06-05 01:38:28 -05:00
parent 9ccbcf7347
commit 3e4b66b093

View file

@ -1180,7 +1180,7 @@ proc computeCoverages(
winding = partitioning.partitions[partitionIndex][i][1]
if segment.at.y <= scanline.a.y and segment.to.y >= scanline.a.y:
var at: Vec2
if scanline.intersects(segment, at) and segment.to != at:
if segment.to != at and scanline.intersects(segment, at):
if numHits == hits.len:
hits.setLen(hits.len * 2)
hits[numHits] = (min(at.x, size.x), winding)