mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Propagate SpriteParser's auto-insignificant-tween skipping fix to SpriteBuilder too
This commit is contained in:
parent
1f7489970e
commit
a6333cf739
1 changed files with 8 additions and 2 deletions
|
@ -28,11 +28,17 @@ module.exports = class SpriteBuilder
|
|||
anim.initialize(mode ? createjs.MovieClip.INDEPENDENT, startPosition ? 0, loops ? true, labels)
|
||||
for tweenData in animData.tweens
|
||||
tween = createjs.Tween
|
||||
stopped = false
|
||||
for func in tweenData
|
||||
args = _.cloneDeep(func.a)
|
||||
@dereferenceArgs(args, locals)
|
||||
tween = tween[func.n](args...)
|
||||
anim.timeline.addTween(tween)
|
||||
if tween[func.n]
|
||||
tween = tween[func.n](args...)
|
||||
else
|
||||
# If we, say, skipped a shadow get(), then the wait() may not be present
|
||||
stopped = true
|
||||
break
|
||||
anim.timeline.addTween(tween) unless stopped
|
||||
|
||||
anim.nominalBounds = new createjs.Rectangle(animData.bounds...)
|
||||
if animData.frameBounds
|
||||
|
|
Loading…
Reference in a new issue