mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 23:39:59 -05:00
No need to perform cyclic looping here now, since #getNext/Previous() does that for us.
This commit is contained in:
parent
a251a24347
commit
138ec7d93c
1 changed files with 0 additions and 7 deletions
|
@ -153,15 +153,8 @@ var Segment = this.Segment = Base.extend({
|
||||||
handleOutSelected = !!(state & SelectionState.HANDLE_OUT);
|
handleOutSelected = !!(state & SelectionState.HANDLE_OUT);
|
||||||
previous = this.getPrevious(),
|
previous = this.getPrevious(),
|
||||||
next = this.getNext(),
|
next = this.getNext(),
|
||||||
closed = this._path.closed,
|
|
||||||
segments = this._path._segments,
|
segments = this._path._segments,
|
||||||
length = segments.length;
|
length = segments.length;
|
||||||
if (length > 1 && closed) {
|
|
||||||
if (previous == null)
|
|
||||||
previous = segments[length - 1];
|
|
||||||
if (next == null)
|
|
||||||
next = segments[0];
|
|
||||||
}
|
|
||||||
if (point == this._point) {
|
if (point == this._point) {
|
||||||
if (pointSelected != selected) {
|
if (pointSelected != selected) {
|
||||||
if (selected) {
|
if (selected) {
|
||||||
|
|
Loading…
Reference in a new issue