mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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,
|
void _EventTimeline_apply (const Timeline* timeline, Skeleton* skeleton, float lastTime, float time, Event** firedEvents,
|
||||||
int* eventCount, float alpha) {
|
int* eventCount, float alpha) {
|
||||||
|
if (!firedEvents) return;
|
||||||
EventTimeline* self = (EventTimeline*)timeline;
|
EventTimeline* self = (EventTimeline*)timeline;
|
||||||
int frameIndex;
|
int frameIndex;
|
||||||
|
|
||||||
|
|||||||
@ -460,6 +460,7 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void Apply (Skeleton skeleton, float lastTime, float time, List<Event> firedEvents, float alpha) {
|
public void Apply (Skeleton skeleton, float lastTime, float time, List<Event> firedEvents, float alpha) {
|
||||||
|
if (firedEvents == null) return;
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
int frameCount = frames.Length;
|
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) {
|
public void apply (Skeleton skeleton, float lastTime, float time, Array<Event> firedEvents, float alpha) {
|
||||||
|
if (firedEvents == null) return;
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
int frameCount = frames.length;
|
int frameCount = frames.length;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user