mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Use correct segment index boundaries in Path#smooth().
This commit is contained in:
parent
34dc0e1589
commit
6262863d9f
1 changed files with 1 additions and 1 deletions
|
@ -2080,7 +2080,7 @@ var Path = PathItem.extend(/** @lends Path# */{
|
|||
// while ranges on open paths stay within the path's open range.
|
||||
return Numerical.clamp(index < 0 && closed
|
||||
? index % length
|
||||
: index < 0 ? index + length : index, 0, length);
|
||||
: index < 0 ? index + length : index, 0, length - 1);
|
||||
}
|
||||
|
||||
var opts = options || {},
|
||||
|
|
Loading…
Reference in a new issue