mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3979 from HoGarfield/AutoPlay-Animation
closed #3033: CCBReader can't play sequence automatically in JSB.
This commit is contained in:
commit
74b514c299
|
@ -273,7 +273,7 @@ Node* CCBReader::readNodeGraphFromData(Data *pData, Object *pOwner, const Size &
|
|||
Dictionary* animationManagers = Dictionary::create();
|
||||
Node *pNodeGraph = readFileWithCleanUp(true, animationManagers);
|
||||
|
||||
if (pNodeGraph && _actionManager->getAutoPlaySequenceId() != -1 && !_jsControlled)
|
||||
if (pNodeGraph && _actionManager->getAutoPlaySequenceId() != -1)
|
||||
{
|
||||
// Auto play animations
|
||||
_actionManager->runAnimationsForSequenceIdTweenDuration(_actionManager->getAutoPlaySequenceId(), 0);
|
||||
|
|
Loading…
Reference in New Issue