mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 05:22:11 +02:00
remove commented-out code
This commit is contained in:
parent
8110921abf
commit
df034ea6da
1 changed files with 1 additions and 10 deletions
|
@ -345,23 +345,14 @@ OverlayID Overlays::getOverlayAtPoint(const glm::vec2& point) {
|
|||
const float LARGE_NEGATIVE_FLOAT = -9999999;
|
||||
glm::vec3 origin(pointCopy.x, pointCopy.y, LARGE_NEGATIVE_FLOAT);
|
||||
glm::vec3 direction(0, 0, 1);
|
||||
// BoxFace thisFace;
|
||||
glm::vec3 thisSurfaceNormal;
|
||||
// float distance;
|
||||
unsigned int bestStackOrder = 0;
|
||||
OverlayID bestOverlayID = UNKNOWN_OVERLAY_ID;
|
||||
|
||||
while (i.hasNext()) {
|
||||
i.next();
|
||||
OverlayID thisID = i.key();
|
||||
if (i.value()->is3D()) {
|
||||
// auto thisOverlay = std::dynamic_pointer_cast<Base3DOverlay>(i.value());
|
||||
// if (thisOverlay && !thisOverlay->getIgnoreRayIntersection()) {
|
||||
// if (thisOverlay->findRayIntersection(origin, direction, distance, thisFace, thisSurfaceNormal)) {
|
||||
// return thisID;
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
if (!i.value()->is3D()) {
|
||||
auto thisOverlay = std::dynamic_pointer_cast<Overlay2D>(i.value());
|
||||
if (thisOverlay && thisOverlay->getVisible() && thisOverlay->isLoaded() &&
|
||||
thisOverlay->getBoundingRect().contains(pointCopy.x, pointCopy.y, false)) {
|
||||
|
|
Loading…
Reference in a new issue