mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +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() {
|
||||
if (Application::getInstance()->isMouseHidden()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// find the intersection with the heightfield
|
||||
glm::vec3 origin = Application::getInstance()->getMouseRayOrigin();
|
||||
glm::vec3 direction = Application::getInstance()->getMouseRayDirection();
|
||||
|
|
Loading…
Reference in a new issue