mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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) {
|
if (skeletonAnimation != null) {
|
||||||
SetActiveSkeleton(skeletonAnimation);
|
SetActiveSkeleton(skeletonAnimation);
|
||||||
skeletonAnimation.skeleton.SetToSetupPose();
|
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;
|
return null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user