浏览代码

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

badlogic 8 年之前
父节点
当前提交
94f100a1cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-ts/widget/src/Widget.ts

+ 1 - 1
spine-ts/widget/src/Widget.ts

@@ -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(); });