issue #1639:set visible to correct value

This commit is contained in:
minggo 2013-01-05 18:35:11 +08:00
parent 77eac0eb5f
commit 7a1f445bff
1 changed files with 2 additions and 1 deletions

View File

@ -425,7 +425,8 @@ void CCBAnimationManager::setAnimatedProperty(const char *pPropName, CCNode *pNo
}
else if (strcmp(pPropName, "visible") == 0)
{
pNode->setVisible(NULL != pValue);
bool visible = ((CCBValue*)pValue)->getBoolValue();
pNode->setVisible(visible);
}
else
{