mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 05:39:07 +08:00
Merge branch 'EsotericSoftware/3.6' into 3.6
This commit is contained in:
commit
b50496fe05
@ -76,8 +76,13 @@ namespace Spine.Unity {
|
|||||||
if (!valid) return;
|
if (!valid) return;
|
||||||
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
if (Application.isPlaying)
|
if (Application.isPlaying) {
|
||||||
translator.Apply(skeleton);
|
translator.Apply(skeleton);
|
||||||
|
} else {
|
||||||
|
var translatorAnimator = translator.Animator;
|
||||||
|
if (translatorAnimator != null && translatorAnimator.isInitialized)
|
||||||
|
translator.Apply(skeleton);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
translator.Apply(skeleton);
|
translator.Apply(skeleton);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user