[unity] Handle SkeletonAnimator edit mode pose.

This commit is contained in:
John 2017-11-23 14:09:33 +08:00 committed by GitHub
parent ed8f238524
commit ad55ab9736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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