mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[unity] Handle SkeletonAnimator edit mode pose.
This commit is contained in:
parent
ed8f238524
commit
ad55ab9736
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user