Browse Source

[ts] Fixed the setup pose not showing when no animation is specified.

`updateWorldTransform` doesn't get called when paused.
Nathan Sweet 2 years ago
parent
commit
ebf2520c5d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      spine-ts/spine-player/src/Player.ts

+ 1 - 0
spine-ts/spine-player/src/Player.ts

@@ -542,6 +542,7 @@ export class SpinePlayer implements Disposable {
 			} else {
 				entry = this.animationState.setEmptyAnimation(0);
 				entry.trackEnd = 100000000;
+				this.skeleton.updateWorldTransform();
 				this.setViewport(entry.animation!);
 				this.pause();
 			}