mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Allow null for setAnimation.
This commit is contained in:
parent
916b7d01de
commit
18ff56549f
@ -223,7 +223,7 @@ TrackEntry* AnimationState_setAnimation (AnimationState* self, int trackIndex, A
|
|||||||
entry->animation = animation;
|
entry->animation = animation;
|
||||||
entry->loop = loop;
|
entry->loop = loop;
|
||||||
entry->time = 0;
|
entry->time = 0;
|
||||||
entry->endTime = animation->duration;
|
entry->endTime = animation ? animation->duration : 0;
|
||||||
_AnimationState_setCurrent(self, trackIndex, entry);
|
_AnimationState_setCurrent(self, trackIndex, entry);
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user