more readable

This commit is contained in:
Ryan Oldenburg 2021-11-21 03:16:41 -06:00
parent b8c1dbc4f2
commit ac6b1f8e4d

View file

@ -1176,7 +1176,8 @@ iterator walk(
for i in 0 ..< numHits:
let (at, winding) = hits[i]
if windingRule == wrNonZero and
(count != 0) == (count + winding != 0) and
count != 0 and
count + winding != 0 and
i < numHits - 1:
# Shortcut: if nonzero rule, we only care about when the count changes
# between zero and nonzero (or the last hit)