[ts][widget] Actually use config.loop field. Closes #853.

This commit is contained in:
badlogic 2017-03-07 11:52:27 +01:00
parent d5297334c0
commit 94f100a1cf

View File

@ -175,7 +175,7 @@ module spine {
}
var animationState = this.state = new spine.AnimationState(new spine.AnimationStateData(skeleton.data));
animationState.setAnimation(0, config.animation, true);
animationState.setAnimation(0, config.animation, config.loop);
if (config.success) config.success(this);
this.loaded = true;
requestAnimationFrame(() => { this.render(); });