修复BatchNode清空所有节点时,未销毁子节点的bug

This commit is contained in:
Nomango 2017-10-05 11:30:27 +08:00
parent 69ac58b46a
commit 4462834c3c
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ void BatchNode::clearAllChildren()
// 所有节点的引用计数减一
for (auto child : m_vChildren)
{
child->autoRelease();
child->release();
}
// 清空储存节点的容器