diff --git a/Examples/Sandbox/main.cpp b/Examples/Sandbox/main.cpp index 82194b344ee180aef9149771a32fceaf6c4a227b..442025baeb2bd19f055544b72b73e7cf5cd3dac6 100644 --- a/Examples/Sandbox/main.cpp +++ b/Examples/Sandbox/main.cpp @@ -448,6 +448,7 @@ void testTwoFalcons() } void testTwoOmnis(){ +#ifdef iMSTK_USE_OPENHAPTICS // SDK and Scene auto sdk = std::make_shared<imstk::SimulationManager>(); auto scene = sdk->createNewScene("OmnisTestScene"); @@ -493,6 +494,7 @@ void testTwoOmnis(){ // Run sdk->setCurrentScene("OmnisTestScene"); sdk->startSimulation(false); +#endif } void testObjectController() @@ -1545,7 +1547,9 @@ void testPbdCollision() sdk->startSimulation(true); } -void testLineMesh(){ +void testLineMesh() +{ +#ifdef iMSTK_USE_OPENHAPTICS // SDK and Scene auto sdk = std::make_shared<imstk::SimulationManager>(); auto scene = sdk->createNewScene("SceneTestMesh"); @@ -1870,4 +1874,5 @@ void testLineMesh(){ // Run sdk->setCurrentScene("SceneTestMesh"); sdk->startSimulation(true); -} \ No newline at end of file +#endif +}