mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +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->loop = loop;
|
||||
entry->time = 0;
|
||||
entry->endTime = animation->duration;
|
||||
entry->endTime = animation ? animation->duration : 0;
|
||||
_AnimationState_setCurrent(self, trackIndex, entry);
|
||||
return entry;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user