소스 검색

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

`updateWorldTransform` doesn't get called when paused.
Nathan Sweet 2 년 전
부모
커밋
ebf2520c5d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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();
 			}