mirror of https://github.com/axmolengine/axmol.git
fixed bug of CCBReader that can not autoplaySequence
This commit is contained in:
parent
6a10910ff3
commit
464d1598d2
|
@ -273,7 +273,7 @@ Node* CCBReader::readNodeGraphFromData(Data *pData, Object *pOwner, const Size &
|
||||||
Dictionary* animationManagers = Dictionary::create();
|
Dictionary* animationManagers = Dictionary::create();
|
||||||
Node *pNodeGraph = readFileWithCleanUp(true, animationManagers);
|
Node *pNodeGraph = readFileWithCleanUp(true, animationManagers);
|
||||||
|
|
||||||
if (pNodeGraph && _actionManager->getAutoPlaySequenceId() != -1 && !_jsControlled)
|
if (pNodeGraph && _actionManager->getAutoPlaySequenceId() != -1)
|
||||||
{
|
{
|
||||||
// Auto play animations
|
// Auto play animations
|
||||||
_actionManager->runAnimationsForSequenceIdTweenDuration(_actionManager->getAutoPlaySequenceId(), 0);
|
_actionManager->runAnimationsForSequenceIdTweenDuration(_actionManager->getAutoPlaySequenceId(), 0);
|
||||||
|
|
Loading…
Reference in New Issue