Merge pull request #1671 from dumganhar/gles20

fixed #1582: A logic bug in CCBAnimationManager::setAnimatedProperty.
This commit is contained in:
James Chen 2012-11-28 19:09:05 -08:00
commit e7219058af
1 changed files with 1 additions and 6 deletions

View File

@ -425,12 +425,7 @@ void CCBAnimationManager::setAnimatedProperty(const char *pPropName, CCNode *pNo
}
else if (strcmp(pPropName, "visible") == 0)
{
bool x = (NULL == pValue) ? false : true;
if(x) {
CCSequence::createWithTwoActions(CCDelayTime::create(fTweenDuration), CCShow::create());
} else {
CCSequence::createWithTwoActions(CCDelayTime::create(fTweenDuration), CCHide::create());
}
pNode->setVisible(NULL != pValue);
}
else
{