mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 08:16:41 +08:00
[unity] Fixed SkeletonAnimationMulti sample component showing wrong first frame after switching skeletons. Closes #1598.
This commit is contained in:
parent
a74555e21f
commit
ce61d429fd
@ -139,7 +139,9 @@ namespace Spine.Unity {
|
||||
if (skeletonAnimation != null) {
|
||||
SetActiveSkeleton(skeletonAnimation);
|
||||
skeletonAnimation.skeleton.SetToSetupPose();
|
||||
return skeletonAnimation.state.SetAnimation(MainTrackIndex, animation, loop);
|
||||
var trackEntry = skeletonAnimation.state.SetAnimation(MainTrackIndex, animation, loop);
|
||||
skeletonAnimation.Update(0);
|
||||
return trackEntry;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user