[unity] Timeline: Fixed Editor scrubbing preview not showing SkeletonUtilityBone overrides (Update callback based). Closes #2031.

This commit is contained in:
Harald Csaszar 2022-02-07 16:18:44 +01:00
parent 5048034053
commit 6b8c6b31cf

View File

@ -303,12 +303,14 @@ namespace Spine.Unity.Playables {
if (toAnimation != null)
toAnimation.Apply(skeleton, 0, toClipTime, clipData.loop, null, 1f, MixBlend.Setup, MixDirection.In);
}
skeleton.UpdateWorldTransform();
if (skeletonAnimation)
if (skeletonAnimation) {
skeletonAnimation.Update(0);
skeletonAnimation.LateUpdate();
else if (skeletonGraphic)
} else if (skeletonGraphic) {
skeletonGraphic.Update(0);
skeletonGraphic.LateUpdate();
}
}
// Do nothing outside of the first clip and the last clip.