From 6930174a9ecc9b4adf0846d13c38cfe2160deb47 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Thu, 7 Aug 2014 18:30:33 -0700 Subject: [PATCH] Hide the cursor when the mouse pointer is hidden. --- interface/src/ui/MetavoxelEditor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/ui/MetavoxelEditor.cpp b/interface/src/ui/MetavoxelEditor.cpp index 28a4d6da27..48fa2ed070 100644 --- a/interface/src/ui/MetavoxelEditor.cpp +++ b/interface/src/ui/MetavoxelEditor.cpp @@ -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();