mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts] Fixed the setup pose not showing when no animation is specified.
`updateWorldTransform` doesn't get called when paused.
This commit is contained in:
parent
3c2033b250
commit
ebf2520c5d
@ -542,6 +542,7 @@ export class SpinePlayer implements Disposable {
|
|||||||
} else {
|
} else {
|
||||||
entry = this.animationState.setEmptyAnimation(0);
|
entry = this.animationState.setEmptyAnimation(0);
|
||||||
entry.trackEnd = 100000000;
|
entry.trackEnd = 100000000;
|
||||||
|
this.skeleton.updateWorldTransform();
|
||||||
this.setViewport(entry.animation!);
|
this.setViewport(entry.animation!);
|
||||||
this.pause();
|
this.pause();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user