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

`updateWorldTransform` doesn't get called when paused.
This commit is contained in:
Nathan Sweet 2023-06-19 14:44:01 -04:00
parent 3c2033b250
commit ebf2520c5d

View File

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