From cc4695507af6bd32ccf263ea607486a8e9c1d821 Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Thu, 26 Sep 2013 16:23:13 -0700 Subject: [PATCH] Test compiles with box2d enabled --- .../ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp b/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp index e93498a3e4..63d44fbea0 100644 --- a/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp +++ b/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp @@ -831,9 +831,11 @@ void TestColliderDetector::initWorld() space = cpSpaceNew(); space->gravity = cpv(0, 0); +#if CC_ENABLE_CHIPMUNK_INTEGRATION // Physics debug layer cocos2d::extension::PhysicsDebugNode *debugLayer = cocos2d::extension::PhysicsDebugNode::create(space); this->addChild(debugLayer, INT_MAX); +#endif Size size = bullet->getContentSize();