mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[ts][widget] Actually use config.loop field. Closes #853.
This commit is contained in:
parent
d5297334c0
commit
94f100a1cf
@ -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(); });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user