From 0f620d9c6c599356096a7936720bbb5918fe7e51 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 28 Jul 2017 15:23:01 +0800 Subject: [PATCH] [unity] Handle Unity Animator warning in edit mode --- spine-unity/Assets/spine-unity/SkeletonAnimator.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spine-unity/Assets/spine-unity/SkeletonAnimator.cs b/spine-unity/Assets/spine-unity/SkeletonAnimator.cs index 7d76b28ac..0337eedc4 100644 --- a/spine-unity/Assets/spine-unity/SkeletonAnimator.cs +++ b/spine-unity/Assets/spine-unity/SkeletonAnimator.cs @@ -75,7 +75,12 @@ namespace Spine.Unity { public void Update () { if (!valid) return; + #if UNITY_EDITOR + if (Application.isPlaying) + translator.Apply(skeleton); + #else translator.Apply(skeleton); + #endif // UpdateWorldTransform and Bone Callbacks {