mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Clear the indices and path references of the removed segments.
This commit is contained in:
parent
074e121f47
commit
a601cfdd6d
1 changed files with 2 additions and 0 deletions
|
@ -255,6 +255,8 @@ var Path = this.Path = PathItem.extend({
|
|||
this._selectedSegmentCount--;
|
||||
segment._selectionState = 0;
|
||||
}
|
||||
// Clear the indices and path references of the removed segments
|
||||
removed._index = removed._path = undefined;
|
||||
}
|
||||
// Adjust the indices of the segments above.
|
||||
for (var i = from, l = segments.length; i < l; i++)
|
||||
|
|
Loading…
Reference in a new issue