Ver Fonte

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

badlogic há 8 anos atrás
pai
commit
94f100a1cf
1 ficheiros alterados com 1 adições e 1 exclusões
  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(); });