Skip to content

Commit

Permalink
[ts] Fixed the setup pose not showing when no animation is specified.
Browse files Browse the repository at this point in the history
`updateWorldTransform` doesn't get called when paused.
  • Loading branch information
NathanSweet committed Jun 19, 2023
1 parent 3c2033b commit ebf2520
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spine-ts/spine-player/src/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit ebf2520

Please sign in to comment.