mirror of https://github.com/axmolengine/axmol.git
issue #1639:set visible to correct value
This commit is contained in:
parent
77eac0eb5f
commit
7a1f445bff
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue