mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix CurveLocation#getSegment.
This commit is contained in:
parent
b667a04cb6
commit
a0f4371803
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ CurveLocation = Base.extend(/** @lends CurveLocation# */{
|
|||
*/
|
||||
getSegment: function() {
|
||||
if (!this._segment) {
|
||||
var parameter = this.getParameter();
|
||||
var curve = this._curve,
|
||||
parameter = this.getParameter();
|
||||
if (parameter == 0) {
|
||||
this._segment = curve._segment1;
|
||||
} else if (parameter == 1) {
|
||||
|
|
Loading…
Reference in a new issue