added missing CC_USE_PHYSICS

This commit is contained in:
Dale Stammen 2014-10-14 14:12:27 -07:00
parent fd638f00b7
commit ec5af7ae90
1 changed files with 2 additions and 0 deletions

View File

@ -1100,6 +1100,7 @@ void Node::removeAllChildren()
this->removeAllChildrenWithCleanup(true);
}
#if CC_USE_PHYSICS
void Node::removeFromPhysicsWorld()
{
if (_physicsBody != nullptr)
@ -1112,6 +1113,7 @@ void Node::removeFromPhysicsWorld()
child->removeFromPhysicsWorld();
}
}
#endif
void Node::removeAllChildrenWithCleanup(bool cleanup)
{