Skip to content

Commit

Permalink
Allow null firedEvents.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Oct 3, 2013
1 parent f33c621 commit 748431b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions spine-c/src/spine/Animation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 1 addition & 0 deletions spine-csharp/src/Animation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ public void setFrame (int frameIndex, float time, Event e) {
}

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;

Expand Down
1 change: 1 addition & 0 deletions spine-libgdx/src/com/esotericsoftware/spine/Animation.java
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ public void setFrame (int frameIndex, float time, Event event) {
}

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;

Expand Down

0 comments on commit 748431b

Please sign in to comment.