mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Making sure there is only one listener set at a time
This commit is contained in:
parent
c1632ee64a
commit
8e715bd475
@ -163,9 +163,11 @@ void TrackEntry::resetRotationDirections() {
|
|||||||
|
|
||||||
void TrackEntry::setListener(AnimationStateListener inValue) {
|
void TrackEntry::setListener(AnimationStateListener inValue) {
|
||||||
_listener = inValue;
|
_listener = inValue;
|
||||||
|
_listenerObj = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackEntry::setListener(AnimationStateListenerClass* inValue) {
|
void TrackEntry::setListener(AnimationStateListenerClass* inValue) {
|
||||||
|
_listener = dummyOnAnimationEventFunc;
|
||||||
_listenerObj = inValue;
|
_listenerObj = inValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -648,9 +650,11 @@ void AnimationState::setTimeScale(float inValue) {
|
|||||||
|
|
||||||
void AnimationState::setListener(AnimationStateListener inValue) {
|
void AnimationState::setListener(AnimationStateListener inValue) {
|
||||||
_listener = inValue;
|
_listener = inValue;
|
||||||
|
_listenerObj = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationState::setListener(AnimationStateListenerClass* inValue) {
|
void AnimationState::setListener(AnimationStateListenerClass* inValue) {
|
||||||
|
_listener = dummyOnAnimationEventFunc;
|
||||||
_listenerObj = inValue;
|
_listenerObj = inValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user