mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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;
|
||||
} else if (operation === 'exclude') {
|
||||
// We need to handle exclusion separately, as we want to
|
||||
// switch at each crossing, and at each intersection within
|
||||
// the exclusion area even if it is not a crossing.
|
||||
if (inter.isCrossing()
|
||||
|| path2 && path2.contains(seg._point)) {
|
||||
// switch at each crossing.
|
||||
if (inter.isCrossing()) {
|
||||
drawSegment(seg, 'exclude-cross', i, 'green');
|
||||
seg = other;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue