mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[c] Listeners on spAnimationState and spTrackEntry will now also be called if a track entry gets disposed as part of disposing an spAnimationState.
This commit is contained in:
parent
017d224cb6
commit
a4a97969e8
@ -35,6 +35,7 @@
|
||||
* Removed `spBone_worldToLocalRotationX` and `spBone_worldToLocalRotationY`. Replaced by `spBone_worldToLocalRotation` (rotation given relative to x-axis, counter-clockwise, in degrees).
|
||||
* Replaced `r`, `g`, `b`, `a` fields with instances of new `spColor` struct in `spRegionAttachment`, `spMeshAttachment`, `spSkeleton`, `spSkeletonData`, `spSlot` and `spSlotData`.
|
||||
* Removed `spVertexIndex`from public API.
|
||||
* Listeners on `spAnimationState` or `spTrackEntry` will now be also called in case a track entry is disposed as part of dispoing the `spAnimationState`.
|
||||
* **Additions**
|
||||
* Added support for local and relative transform constraint calculation, including additional fields in `spTransformConstraintData`.
|
||||
* Added `spPointAttachment`, additional method `spAtlasAttachmentLoadeR_newPointAttachment`.
|
||||
|
||||
@ -193,9 +193,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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user