mirror of https://github.com/axmolengine/axmol.git
added missing CC_USE_PHYSICS
This commit is contained in:
parent
fd638f00b7
commit
ec5af7ae90
|
@ -1100,6 +1100,7 @@ void Node::removeAllChildren()
|
||||||
this->removeAllChildrenWithCleanup(true);
|
this->removeAllChildrenWithCleanup(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CC_USE_PHYSICS
|
||||||
void Node::removeFromPhysicsWorld()
|
void Node::removeFromPhysicsWorld()
|
||||||
{
|
{
|
||||||
if (_physicsBody != nullptr)
|
if (_physicsBody != nullptr)
|
||||||
|
@ -1112,6 +1113,7 @@ void Node::removeFromPhysicsWorld()
|
||||||
child->removeFromPhysicsWorld();
|
child->removeFromPhysicsWorld();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void Node::removeAllChildrenWithCleanup(bool cleanup)
|
void Node::removeAllChildrenWithCleanup(bool cleanup)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue