关于CCArmature的Bug

问题是这样的:
在CCScene里放一个CCArmature,然后play,这没有问题
然后把这个CCArmature::removeFromParent,之后重新Add到场景里,再播放,就只能显示一个固定帧,无法播放帧序列了
请问这是什么问题,有办法解决么

使用的场景是:
我在CCScene里需要用到一堆CCArmature,所以做了一个内存池来定时回收它们(从场景里移除掉,等用的时候再加回去)。避免出现大量内存碎片
当用完再加回CCScene里的时候,就出问题了
内存管理没有问题,因为所有的Armature在构造出来之后,马上就存在一个Array里了,不会因为removeFromParent而被删除内存

附一段用来播放的代码

void GameTouchArmature::show(CCPoint pos)
{
this->setPosition(pos);
CCDirector::sharedDirector()->getRunningScene()->addChild(this);
this->getAnimation()->play(“anger_full_high”);

CCCallFunc *finishCallback = CCCallFunc::create(this, callfunc_selector(GameTouchArmature::hide));
CCDelayTime *delayTime = CCDelayTime::create(0.3f);
this->runAction(CCSequence::createWithTwoActions(delayTime, finishCallback));

}

void GameTouchArmature::hide()
{
this->getAnimation()->stop();
removeFromParent();
GameEngine::getInstance()->touchEngine->amaturePutBack(this);
}

谢谢楼主反馈,我已经提交这个问题了

请看这个 commit :
https://github.com/2youyouo2/cocos2d-x/commit/a1b65b23e79c30be1b896fb3f4460de5c83dcf33

— Begin quote from ____

引用第2楼jjyinkailejj于2014-01-03 10:12发表的 :
请看这个 commit :
https://github.com/2youyouo2/cocos2d-x/commit/a1b65b23e79c30be1b896fb3f4460de5c83dcf33 http://www.cocoachina.com/bbs/job.php?action=topost&tid=177853&pid=867930

— End quote

这个办法靠谱,搞定了。多谢

楼主。。请问下这个修复了什么问题? 我的CCArmature也是移除然后再加入 但是不会出现你所说的那样停在某一帧上啊?

— Begin quote from ____

引用第4楼ixgsoul于2014-01-14 20:16发表的 回 3楼(flysec) 的帖子 :
楼主。。请问下这个修复了什么问题? 我的CCArmature也是移除然后再加入 但是不会出现你所说的那样停在某一帧上啊? http://www.cocoachina.com/bbs/job.php?action=topost&tid=177853&pid=874501

— End quote

修复帧动画停着不动的问题