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,8 +80,12 @@ namespace Spine.Unity {
|
||||
if (Application.isPlaying) {
|
||||
translator.Apply(skeleton);
|
||||
} 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);
|
||||
}
|
||||
}
|
||||
#else
|
||||
translator.Apply(skeleton);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user