mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 15:50:11 -04:00
Fixed singular sprite animations frame ordering.
This commit is contained in:
parent
67bd01b397
commit
ca9c387964
1 changed files with 1 additions and 1 deletions
|
@ -427,7 +427,7 @@ module.exports = LayerAdapter = class LayerAdapter extends CocoClass
|
|||
if action.frames
|
||||
frames = (framesMap[parseInt(frame)] for frame in action.frames.split(','))
|
||||
else
|
||||
frames = _.values(framesMap).sort()
|
||||
frames = _.sortBy(_.values(framesMap))
|
||||
next = @nextForAction(action)
|
||||
spriteSheetBuilder.addAnimation(name, frames, next)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue