mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[unity] Fixed exception at SkeletonMecanim with UpdateTiming InLateUpdate. Closes #2392.
This commit is contained in:
parent
209acdc892
commit
cc352cf026
@ -167,7 +167,7 @@ namespace Spine.Unity {
|
||||
}
|
||||
|
||||
public override void LateUpdate () {
|
||||
if (updateTiming == UpdateTiming.InLateUpdate && valid)
|
||||
if (updateTiming == UpdateTiming.InLateUpdate && valid && translator != null && translator.Animator != null)
|
||||
UpdateAnimation();
|
||||
// instantiation can happen from Update() after this component, leading to a missing Update() call.
|
||||
if (!wasUpdatedAfterInit) Update();
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "com.esotericsoftware.spine.spine-unity",
|
||||
"displayName": "spine-unity Runtime",
|
||||
"description": "This plugin provides the spine-unity runtime core.",
|
||||
"version": "4.1.27",
|
||||
"version": "4.1.28",
|
||||
"unity": "2018.3",
|
||||
"author": {
|
||||
"name": "Esoteric Software",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user