mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Boolean: Clean up previous fix.
This commit is contained in:
parent
e3dae5f96f
commit
0396446c4c
1 changed files with 4 additions and 3 deletions
|
@ -784,8 +784,11 @@ PathItem.inject(new function() {
|
||||||
other = inter && inter._segment,
|
other = inter && inter._segment,
|
||||||
finished = !first && (isStart(seg) || isStart(other)),
|
finished = !first && (isStart(seg) || isStart(other)),
|
||||||
cross = !finished && other;
|
cross = !finished && other;
|
||||||
if (first)
|
if (first) {
|
||||||
path = new Path(Item.NO_INSERT);
|
path = new Path(Item.NO_INSERT);
|
||||||
|
// Clear branch to start a new one with each new path.
|
||||||
|
branch = null;
|
||||||
|
}
|
||||||
if (finished) {
|
if (finished) {
|
||||||
// If we end up on the first or last segment of an operand,
|
// If we end up on the first or last segment of an operand,
|
||||||
// copy over its closed state, to support mixed open/closed
|
// copy over its closed state, to support mixed open/closed
|
||||||
|
@ -864,8 +867,6 @@ PathItem.inject(new function() {
|
||||||
paths.push(path);
|
paths.push(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Clear branch so we start with a new one on the next contour.
|
|
||||||
branch = null;
|
|
||||||
}
|
}
|
||||||
return paths;
|
return paths;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue