Browse Source

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

Harald Csaszar 3 years ago
parent
commit
6b8c6b31cf

+ 5 - 3
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.