mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
tablet-ui: Fix for keyboard focus box still being visible sometimes
This commit is contained in:
parent
ca79397ee8
commit
9be6fe2192
1 changed files with 2 additions and 0 deletions
|
@ -4168,6 +4168,8 @@ void Application::setKeyboardFocusOverlay(unsigned int overlayID) {
|
|||
auto size = overlay->getSize() * FOCUS_HIGHLIGHT_EXPANSION_FACTOR;
|
||||
const float OVERLAY_DEPTH = 0.0105f;
|
||||
setKeyboardFocusHighlight(overlay->getPosition(), overlay->getRotation(), glm::vec3(size.x, size.y, OVERLAY_DEPTH));
|
||||
} else {
|
||||
_keyboardFocusHighlight->setVisible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue