Skip to content

Commit

Permalink
Bugfix glider on polygon
Browse files Browse the repository at this point in the history
If the segment the glider is on changes, the change was not stored back in the glider.
  • Loading branch information
migerh committed Apr 22, 2013
1 parent efcd540 commit 2f68165
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/base/point.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ define([
}
}
}

// If the slide object has changed, save the change to the glider.
if (slide.id !== this.slideObject.id) {
this.slideObject = slide;
}
}

p1c = slide.point1.coords;
Expand Down

0 comments on commit 2f68165

Please sign in to comment.