mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
[spine] Cherry-pick https://github.com/EsotericSoftware/spine-runtimes/commit/a4a97969e8916be7d6ba531707b662ebbad8da9b
This commit is contained in:
@@ -186,9 +186,13 @@ void _spAnimationState_disposeTrackEntries (spAnimationState* state, spTrackEntr
|
||||
spTrackEntry* from = entry->mixingFrom;
|
||||
while (from) {
|
||||
spTrackEntry* nextFrom = from->mixingFrom;
|
||||
if (entry->listener) entry->listener(state, SP_ANIMATION_DISPOSE, from, 0);
|
||||
if (state->listener) state->listener(state, SP_ANIMATION_DISPOSE, from, 0);
|
||||
_spAnimationState_disposeTrackEntry(from);
|
||||
from = nextFrom;
|
||||
}
|
||||
if (entry->listener) entry->listener(state, SP_ANIMATION_DISPOSE, entry, 0);
|
||||
if (state->listener) state->listener(state, SP_ANIMATION_DISPOSE, entry, 0);
|
||||
_spAnimationState_disposeTrackEntry(entry);
|
||||
entry = next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user