mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
_tracePaths: Avoid traversing to visited segments
This commit is contained in:
parent
dfd1c97a4f
commit
2121b564d0
1 changed files with 2 additions and 1 deletions
|
@ -571,7 +571,8 @@ var PathItem = Item.extend(/** @lends PathItem# */{
|
|||
} else {
|
||||
nextSeg = null;
|
||||
}
|
||||
if (!nextSeg || !operator(nextSeg._winding)) {
|
||||
if (!nextSeg || nextSeg && (nextSeg._visited ||
|
||||
!operator(nextSeg._winding))) {
|
||||
direction = 1;
|
||||
} else {
|
||||
// Switch to the intersection segment.
|
||||
|
|
Loading…
Reference in a new issue