mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
Allow null firedEvents.
This commit is contained in:
parent
f33c621194
commit
748431b4f6
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user