mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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));
|
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);
|
if (config.success) config.success(this);
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
requestAnimationFrame(() => { this.render(); });
|
requestAnimationFrame(() => { this.render(); });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user