mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
Merge branch '3.7' of https://github.com/esotericsoftware/spine-runtimes into 3.7
This commit is contained in:
commit
67f469b06d
@ -80,9 +80,13 @@ namespace Spine.Unity {
|
|||||||
if (Application.isPlaying) {
|
if (Application.isPlaying) {
|
||||||
translator.Apply(skeleton);
|
translator.Apply(skeleton);
|
||||||
} else {
|
} else {
|
||||||
if (translatorAnimator != null && translatorAnimator.isInitialized)
|
if (translatorAnimator != null && translatorAnimator.isInitialized &&
|
||||||
|
translatorAnimator.isActiveAndEnabled && translatorAnimator.runtimeAnimatorController != null) {
|
||||||
|
// Note: Rebind is required to prevent warning "Animator is not playing an AnimatorController" with prefabs
|
||||||
|
translatorAnimator.Rebind();
|
||||||
translator.Apply(skeleton);
|
translator.Apply(skeleton);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
translator.Apply(skeleton);
|
translator.Apply(skeleton);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user