mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 12:33:04 +02:00
Remove extraneous getDrawonHUD call
This commit is contained in:
parent
929200bc76
commit
3bfc298349
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ unsigned int Overlays::getOverlayAtPoint(const glm::vec2& point) {
|
||||||
unsigned int thisID = i.key();
|
unsigned int thisID = i.key();
|
||||||
if (i.value()->is3D()) {
|
if (i.value()->is3D()) {
|
||||||
Base3DOverlay* thisOverlay = static_cast<Base3DOverlay*>(i.value());
|
Base3DOverlay* thisOverlay = static_cast<Base3DOverlay*>(i.value());
|
||||||
if (thisOverlay->getDrawOnHUD() && !thisOverlay->getIgnoreRayIntersection()) {
|
if (!thisOverlay->getIgnoreRayIntersection()) {
|
||||||
if (thisOverlay->findRayIntersection(origin, direction, distance, thisFace)) {
|
if (thisOverlay->findRayIntersection(origin, direction, distance, thisFace)) {
|
||||||
return thisID;
|
return thisID;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue