mirror of https://github.com/axmolengine/axmol.git
Modify the sequenceCompleted method in CCBAnimationManager,So it can set the next sequence in callback
This commit is contained in:
parent
7ef5bd8110
commit
0002815acb
|
@ -910,6 +910,11 @@ void CCBAnimationManager::sequenceCompleted()
|
||||||
_lastCompletedSequenceName = runningSequenceName;
|
_lastCompletedSequenceName = runningSequenceName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nextSeqId != -1)
|
||||||
|
{
|
||||||
|
runAnimationsForSequenceIdTweenDuration(nextSeqId, 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (_delegate)
|
if (_delegate)
|
||||||
{
|
{
|
||||||
// There may be another runAnimation() call in this delegate method
|
// There may be another runAnimation() call in this delegate method
|
||||||
|
@ -920,11 +925,6 @@ void CCBAnimationManager::sequenceCompleted()
|
||||||
if (_target && _animationCompleteCallbackFunc) {
|
if (_target && _animationCompleteCallbackFunc) {
|
||||||
(_target->*_animationCompleteCallbackFunc)();
|
(_target->*_animationCompleteCallbackFunc)();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nextSeqId != -1)
|
|
||||||
{
|
|
||||||
runAnimationsForSequenceIdTweenDuration(nextSeqId, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom actions
|
// Custom actions
|
||||||
|
|
Loading…
Reference in New Issue