Merge pull request #3979 from HoGarfield/AutoPlay-Animation

closed #3033: CCBReader can't play sequence automatically in JSB.
This commit is contained in:
James Chen 2013-10-22 00:30:47 -07:00
commit 74b514c299
1 changed files with 1 additions and 1 deletions

View File

@ -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);