mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Some minor cleanups.
This commit is contained in:
parent
7da70181cc
commit
7d675dab13
1 changed files with 5 additions and 5 deletions
|
@ -429,7 +429,7 @@ PathItem.inject(new function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var nextCurve = curves[i + 1];
|
var nextCurve = curves[i + 1];
|
||||||
if (!nextCurve || nextCurve.getPath() != path) {
|
if (!nextCurve || nextCurve.getPath() !== path) {
|
||||||
if (!pathWindingL && !pathWindingR && isOnPath) {
|
if (!pathWindingL && !pathWindingR && isOnPath) {
|
||||||
// Use the on-path windings if no other intersections
|
// Use the on-path windings if no other intersections
|
||||||
// were found or if they canceled each other.
|
// were found or if they canceled each other.
|
||||||
|
@ -445,7 +445,7 @@ PathItem.inject(new function() {
|
||||||
isOnPath = false;
|
isOnPath = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (windingL === 0 && windingR === 0) {
|
if (!windingL && !windingR) {
|
||||||
windingL = windingR = onPathWinding;
|
windingL = windingR = onPathWinding;
|
||||||
}
|
}
|
||||||
windingL = windingL && (2 - abs(windingL) % 2);
|
windingL = windingL && (2 - abs(windingL) % 2);
|
||||||
|
|
Loading…
Reference in a new issue