mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 01:57:00 +02:00
Hide the cursor when the mouse pointer is hidden.
This commit is contained in:
parent
0fc34a47aa
commit
6930174a9e
1 changed files with 4 additions and 0 deletions
|
@ -1096,6 +1096,10 @@ HeightfieldBrushTool::HeightfieldBrushTool(MetavoxelEditor* editor, const QStrin
|
||||||
}
|
}
|
||||||
|
|
||||||
void HeightfieldBrushTool::render() {
|
void HeightfieldBrushTool::render() {
|
||||||
|
if (Application::getInstance()->isMouseHidden()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// find the intersection with the heightfield
|
// find the intersection with the heightfield
|
||||||
glm::vec3 origin = Application::getInstance()->getMouseRayOrigin();
|
glm::vec3 origin = Application::getInstance()->getMouseRayOrigin();
|
||||||
glm::vec3 direction = Application::getInstance()->getMouseRayDirection();
|
glm::vec3 direction = Application::getInstance()->getMouseRayDirection();
|
||||||
|
|
Loading…
Reference in a new issue