fixed #1582: A logic bug in CCBAnimationManager::setAnimatedProperty.

This commit is contained in:
James Chen 2012-11-29 11:07:06 +08:00
parent cccd9d5294
commit 10195d0215
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
{