mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1671 from dumganhar/gles20
fixed #1582: A logic bug in CCBAnimationManager::setAnimatedProperty.
This commit is contained in:
commit
e7219058af
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue