mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +08:00
[unity] SkeletonAnimation inspector exception bugfix. Occurred when switching assigned SkeletonDataAsset from an invalid to a valid one.
This commit is contained in:
parent
3bf9c3508f
commit
bce5500290
@ -90,7 +90,7 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
protected void TrySetAnimation (SkeletonAnimation skeletonAnimation) {
|
||||
if (skeletonAnimation == null) return;
|
||||
if (!skeletonAnimation.valid)
|
||||
if (!skeletonAnimation.valid || skeletonAnimation.AnimationState == null)
|
||||
return;
|
||||
|
||||
TrackEntry current = skeletonAnimation.AnimationState.GetCurrent(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user