Projects > cpp > Issues > Bug #644

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

CCSpriteBatchNode::removeAllChildrenWithCleanup() not work as expected

Bug #644 [Closed]
zhangbin@cocos2d-x.org 2011-07-31 18:40 . Updated over 12 years ago

In this situation:

CCSpriteBatchNode *batchNode = CCSpriteBatchNode::nodeWithZZZ...
CCSprite *spriteA = CCSprite::initWithXXX...
CCSprite *spriteB = CCSprite::initWithYYY...

spriteA->addChild(spriteB);
batchNode->addChild(spriteA); // after addChild, both spriteA and spriteB's m_bUseBatchNode is true

 // after this code, m_bUseBatchNode of spriteA & spriteB should be false. But spriteB is not
batchNode->removeAllChildrenWithCleanup(true);

Feedback from forum: http://www.cocos2d-x.org/boards/6/topics/2699?r=2719

walzer@cocos2d-x.org 2011-07-31 21:12
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:e4ea2b80beeb1e84f1ae90c5578db035d6f304e1.

zhangbin@cocos2d-x.org 2011-07-31 21:12

Applied in changeset commit:10146060b294dbd7971b1683500cdde8ea548b8c.

zhangbin@cocos2d-x.org 2011-08-01 23:12
  • Status changed from Resolved to Closed
walzer@cocos2d-x.org 2012-05-25 08:06
  • Project changed from cocos2d-x to cpp
  • Category deleted (5)
  • Target version deleted (cocos2d-1.0.1-x-0.9.1)

Atom PDF

Status:Closed
Start date:2011-07-31
Priority:Normal
Due date:
Assignee:zhangbin@cocos2d-x.org
% Done:

100%

Category:-
Target version:-