From 10195d0215bc7b10fb31dcf329d615b0d8b1af8d Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 29 Nov 2012 11:07:06 +0800 Subject: [PATCH] fixed #1582: A logic bug in CCBAnimationManager::setAnimatedProperty. --- extensions/CCBReader/CCBAnimationManager.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extensions/CCBReader/CCBAnimationManager.cpp b/extensions/CCBReader/CCBAnimationManager.cpp index 8f7e07b07f..f6d5f9c495 100644 --- a/extensions/CCBReader/CCBAnimationManager.cpp +++ b/extensions/CCBReader/CCBAnimationManager.cpp @@ -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 {