mirror of https://github.com/axmolengine/axmol.git
issue #2790: Stops all actions when reset _rootNode.
This commit is contained in:
parent
64fd2386a9
commit
479477be52
|
@ -53,6 +53,10 @@ CCBAnimationManager::~CCBAnimationManager()
|
||||||
// Node *node = (Node*)pElement->getIntKey();
|
// Node *node = (Node*)pElement->getIntKey();
|
||||||
// node->release();
|
// node->release();
|
||||||
// }
|
// }
|
||||||
|
if (_rootNode)
|
||||||
|
{
|
||||||
|
_rootNode->stopAllActions();
|
||||||
|
}
|
||||||
|
|
||||||
setRootNode(NULL);
|
setRootNode(NULL);
|
||||||
setDelegate(NULL);
|
setDelegate(NULL);
|
||||||
|
|
Loading…
Reference in New Issue