Mercurial > code > home > repos > light9
changeset 1912:da950e4619f3
fix sorting of points within a note. they would randomly scramble
Ignore-this: 6fdffe0ac309ebaacc3ecf9406dba03b
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 01 Jun 2019 11:02:54 +0000 |
parents | 11bc3d32f453 |
children | 076f8551ae36 |
files | light9/web/timeline/timeline.coffee |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/web/timeline/timeline.coffee Sat Jun 01 10:59:16 2019 +0000 +++ b/light9/web/timeline/timeline.coffee Sat Jun 01 11:02:54 2019 +0000 @@ -77,7 +77,7 @@ v = $V([xOffset + tm, val]) v.uri = pt worldPts.push(v) - worldPts.sort((a,b) -> a.e(1) > b.e(1)) + worldPts.sort((a,b) -> a.e(1) - b.e(1)) return [uris, worldPts] curveWidth: (worldPts) ->