浏览代码

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

Harald Csaszar 3 年之前
父节点
当前提交
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)
 					if (toAnimation != null)
 						toAnimation.Apply(skeleton, 0, toClipTime, clipData.loop, null, 1f, MixBlend.Setup, MixDirection.In);
 						toAnimation.Apply(skeleton, 0, toClipTime, clipData.loop, null, 1f, MixBlend.Setup, MixDirection.In);
 				}
 				}
-				skeleton.UpdateWorldTransform();
 
 
-				if (skeletonAnimation)
+				if (skeletonAnimation) {
+					skeletonAnimation.Update(0);
 					skeletonAnimation.LateUpdate();
 					skeletonAnimation.LateUpdate();
-				else if (skeletonGraphic)
+				} else if (skeletonGraphic) {
+					skeletonGraphic.Update(0);
 					skeletonGraphic.LateUpdate();
 					skeletonGraphic.LateUpdate();
+				}
 			}
 			}
 			// Do nothing outside of the first clip and the last clip.
 			// Do nothing outside of the first clip and the last clip.