Fixed a bug where SegmentedSprite would sometimes error out (particularly the door on death).

This commit is contained in:
Scott Erickson 2014-10-03 09:36:47 -07:00
parent 64acbe4580
commit 67bd01b397

View file

@ -161,7 +161,8 @@ module.exports = class SegmentedSprite extends createjs.SpriteContainer
anim.nominalBounds = new createjs.Rectangle(animData.bounds...)
if animData.frameBounds
anim.frameBounds = (new createjs.Rectangle(bounds...) for bounds in animData.frameBounds)
anim.childMovieClips = @childMovieClips
anim.childMovieClips = @childMovieClips
@spriteSheet.mcPool[key].push(anim)
return anim