Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
remove an ugly bool DEBUG variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ybalrid committed Jan 31, 2017
1 parent 1d59fb8 commit 5de009d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/OgreOculusRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,17 +527,13 @@ void OgreOculusRender::renderAndSubmitFrame()
}
}

//TODO get rid of this boolean
constexpr bool DEBUG(false);

void OgreOculusRender::initializeHandObjects(const oorEyeType side)
{
//If it's the first time we have access data on this hand controller, instantiate the object
if (!handControllers[side])
{
handControllers[side] = std::make_shared<AnnOculusTouchController>
(Oculus->getSession(), smgr->getRootSceneNode()->createChildSceneNode(), size_t(side), AnnHandController::AnnHandControllerSide(side));
if (DEBUG) handControllers[side]->attachModel(smgr->createEntity("gizmo.mesh"));
}
}

Expand Down
5 changes: 0 additions & 5 deletions src/OgreOpenVRRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ void OgreOpenVRRender::processVREvents()
}
}

//TODO completely remove this boolean
constexpr bool DEBUG(false);

void OgreOpenVRRender::processController(vr::TrackedDeviceIndex_t controllerDeviceIndex, Annwvyn::AnnHandController::AnnHandControllerSide side)
{
//Extract tracking information from the device
Expand All @@ -342,8 +339,6 @@ void OgreOpenVRRender::processController(vr::TrackedDeviceIndex_t controllerDevi
{
handControllers[side] = std::make_shared<Annwvyn::AnnOpenVRMotionController>
(vrSystem, controllerDeviceIndex, smgr->getRootSceneNode()->createChildSceneNode(), size_t(controllerDeviceIndex), side);

if (DEBUG) handControllers[side]->attachModel(smgr->createEntity("gizmo.mesh"));
}

auto handController = handControllers[side];
Expand Down

0 comments on commit 5de009d

Please sign in to comment.