mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Mark last segment as visited when done.
This commit is contained in:
parent
cf5bf38c3b
commit
c79166a46f
1 changed files with 1 additions and 0 deletions
|
@ -639,6 +639,7 @@ PathItem.inject(new function() {
|
|||
if (added && (seg === start || seg === otherStart)) {
|
||||
// We've come back to the start, bail out as we're done.
|
||||
drawSegment(seg, null, 'done', i, 'red');
|
||||
seg._visited = true;
|
||||
break;
|
||||
} else if (seg._visited && (!other || other._visited)) {
|
||||
// TODO: Do we still need to check other too?
|
||||
|
|
Loading…
Reference in a new issue