mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Only mark overlap segments as visited during #intersect().
This commit is contained in:
parent
f4f46fa985
commit
060ab5e7f9
1 changed files with 3 additions and 1 deletions
|
@ -623,7 +623,9 @@ PathItem.inject(new function() {
|
|||
// If we are at a crossing and the other segment is part of the
|
||||
// boolean result, switch to it.
|
||||
if (other && isValid(other)) {
|
||||
if (operation === 'intersect')
|
||||
// We need to mark overlap segments as visited when
|
||||
// processing intersection.
|
||||
if (inter.isOverlap() && operation === 'intersect')
|
||||
seg._visited = true;
|
||||
seg = other;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue