From 6b8c6b31cfed894126f7920b9ad59c78dc1392d6 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 7 Feb 2022 16:18:44 +0100 Subject: [PATCH] [unity] Timeline: Fixed Editor scrubbing preview not showing SkeletonUtilityBone overrides (Update callback based). Closes #2031. --- .../SpineAnimationStateMixerBehaviour.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spine-unity/Modules/com.esotericsoftware.spine.timeline/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs b/spine-unity/Modules/com.esotericsoftware.spine.timeline/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs index a9e472020..bf25ef008 100644 --- a/spine-unity/Modules/com.esotericsoftware.spine.timeline/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs +++ b/spine-unity/Modules/com.esotericsoftware.spine.timeline/Runtime/SpineAnimationState/SpineAnimationStateMixerBehaviour.cs @@ -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.