mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Simplify exclusion handling for new boolean code.
This commit is contained in:
parent
87687d816b
commit
66b01973f0
1 changed files with 2 additions and 4 deletions
|
@ -539,10 +539,8 @@ PathItem.inject(new function() {
|
||||||
seg = other;
|
seg = other;
|
||||||
} else if (operation === 'exclude') {
|
} else if (operation === 'exclude') {
|
||||||
// We need to handle exclusion separately, as we want to
|
// We need to handle exclusion separately, as we want to
|
||||||
// switch at each crossing, and at each intersection within
|
// switch at each crossing.
|
||||||
// the exclusion area even if it is not a crossing.
|
if (inter.isCrossing()) {
|
||||||
if (inter.isCrossing()
|
|
||||||
|| path2 && path2.contains(seg._point)) {
|
|
||||||
drawSegment(seg, 'exclude-cross', i, 'green');
|
drawSegment(seg, 'exclude-cross', i, 'green');
|
||||||
seg = other;
|
seg = other;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue