mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Coding Standard
This commit is contained in:
parent
90d4e7bae9
commit
7322cd3ece
1 changed files with 3 additions and 3 deletions
|
@ -245,9 +245,9 @@ void Overlays::deleteOverlay(unsigned int id) {
|
|||
}
|
||||
|
||||
unsigned int Overlays::getOverlayAtPoint(const glm::vec2& point) {
|
||||
glm::vec2 pointCpy = point;
|
||||
glm::vec2 pointCopy = point;
|
||||
if (OculusManager::isConnected()) {
|
||||
pointCpy = Application::getInstance()->getApplicationOverlay().screenToOverlay(point);
|
||||
pointCopy = Application::getInstance()->getApplicationOverlay().screenToOverlay(point);
|
||||
}
|
||||
|
||||
QReadLocker lock(&_lock);
|
||||
|
@ -258,7 +258,7 @@ unsigned int Overlays::getOverlayAtPoint(const glm::vec2& point) {
|
|||
unsigned int thisID = i.key();
|
||||
Overlay2D* thisOverlay = static_cast<Overlay2D*>(i.value());
|
||||
if (thisOverlay->getVisible() && thisOverlay->isLoaded() &&
|
||||
thisOverlay->getBounds().contains(pointCpy.x, pointCpy.y, false)) {
|
||||
thisOverlay->getBounds().contains(pointCopy.x, pointCopy.y, false)) {
|
||||
return thisID;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue