This commit is contained in:
Ryan Oldenburg 2021-05-29 02:26:14 -05:00
parent 6606665fe2
commit 2f8fbcd792
2 changed files with 1 additions and 1 deletions

View file

@ -1086,7 +1086,7 @@ template computeCoverages(
for (segment, winding) in partitions[partition]:
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 scanline.intersects(segment, at) and segment.to != at:
if numHits == hits.len:
hits.setLen(hits.len * 2)
hits[numHits] = (min(at.x, size.x), winding)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB