Allow null firedEvents.

This commit is contained in:
NathanSweet 2013-10-03 21:32:57 +02:00
parent f33c621194
commit 748431b4f6
3 changed files with 3 additions and 0 deletions

View File

@ -515,6 +515,7 @@ void AttachmentTimeline_setFrame (AttachmentTimeline* self, int frameIndex, floa
void _EventTimeline_apply (const Timeline* timeline, Skeleton* skeleton, float lastTime, float time, Event** firedEvents,
int* eventCount, float alpha) {
if (!firedEvents) return;
EventTimeline* self = (EventTimeline*)timeline;
int frameIndex;

View File

@ -460,6 +460,7 @@ namespace Spine {
}
public void Apply (Skeleton skeleton, float lastTime, float time, List<Event> firedEvents, float alpha) {
if (firedEvents == null) return;
float[] frames = this.frames;
int frameCount = frames.Length;

View File

@ -534,6 +534,7 @@ public class Animation {
}
public void apply (Skeleton skeleton, float lastTime, float time, Array<Event> firedEvents, float alpha) {
if (firedEvents == null) return;
float[] frames = this.frames;
int frameCount = frames.length;