From ad55ab97362bb25086614980f8c26608695cdeeb Mon Sep 17 00:00:00 2001 From: John Date: Thu, 23 Nov 2017 14:09:33 +0800 Subject: [PATCH] [unity] Handle SkeletonAnimator edit mode pose. --- spine-unity/Assets/spine-unity/SkeletonAnimator.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spine-unity/Assets/spine-unity/SkeletonAnimator.cs b/spine-unity/Assets/spine-unity/SkeletonAnimator.cs index 558f2177e..5bdbcd0d7 100644 --- a/spine-unity/Assets/spine-unity/SkeletonAnimator.cs +++ b/spine-unity/Assets/spine-unity/SkeletonAnimator.cs @@ -76,8 +76,13 @@ namespace Spine.Unity { if (!valid) return; #if UNITY_EDITOR - if (Application.isPlaying) + if (Application.isPlaying) { translator.Apply(skeleton); + } else { + var translatorAnimator = translator.Animator; + if (translatorAnimator != null && translatorAnimator.isInitialized) + translator.Apply(skeleton); + } #else translator.Apply(skeleton); #endif