Hide the cursor when the mouse pointer is hidden.

This commit is contained in:
Andrzej Kapolka 2014-08-07 18:30:33 -07:00
parent 0fc34a47aa
commit 6930174a9e

View file

@ -1096,6 +1096,10 @@ HeightfieldBrushTool::HeightfieldBrushTool(MetavoxelEditor* editor, const QStrin
}
void HeightfieldBrushTool::render() {
if (Application::getInstance()->isMouseHidden()) {
return;
}
// find the intersection with the heightfield
glm::vec3 origin = Application::getInstance()->getMouseRayOrigin();
glm::vec3 direction = Application::getInstance()->getMouseRayDirection();