mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Boolean: Prevent rare exception where an encountered segment is not part of a valid path anymore.
Relates to #1091
This commit is contained in:
parent
80f4ba947f
commit
083a2c6e0d
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ PathItem.inject(new function() {
|
|||
// are bringing us back to the beginning, and are both valid,
|
||||
// meaning they are part of the boolean result.
|
||||
if (seg !== exclude && (isStart(seg) || isStart(nextSeg)
|
||||
|| !seg._visited && !nextSeg._visited
|
||||
|| nextSeg && !seg._visited && !nextSeg._visited
|
||||
// Self-intersections (!operator) don't need isValid() calls
|
||||
&& (!operator || isValid(seg) && (isValid(nextSeg)
|
||||
// If the next segment isn't valid, its intersection
|
||||
|
|
Loading…
Reference in a new issue