mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:38:02 +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;
|
const float LARGE_NEGATIVE_FLOAT = -9999999;
|
||||||
glm::vec3 origin(pointCopy.x, pointCopy.y, LARGE_NEGATIVE_FLOAT);
|
glm::vec3 origin(pointCopy.x, pointCopy.y, LARGE_NEGATIVE_FLOAT);
|
||||||
glm::vec3 direction(0, 0, 1);
|
glm::vec3 direction(0, 0, 1);
|
||||||
// BoxFace thisFace;
|
|
||||||
glm::vec3 thisSurfaceNormal;
|
glm::vec3 thisSurfaceNormal;
|
||||||
// float distance;
|
|
||||||
unsigned int bestStackOrder = 0;
|
unsigned int bestStackOrder = 0;
|
||||||
OverlayID bestOverlayID = UNKNOWN_OVERLAY_ID;
|
OverlayID bestOverlayID = UNKNOWN_OVERLAY_ID;
|
||||||
|
|
||||||
while (i.hasNext()) {
|
while (i.hasNext()) {
|
||||||
i.next();
|
i.next();
|
||||||
OverlayID thisID = i.key();
|
OverlayID thisID = i.key();
|
||||||
if (i.value()->is3D()) {
|
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 {
|
|
||||||
auto thisOverlay = std::dynamic_pointer_cast<Overlay2D>(i.value());
|
auto thisOverlay = std::dynamic_pointer_cast<Overlay2D>(i.value());
|
||||||
if (thisOverlay && thisOverlay->getVisible() && thisOverlay->isLoaded() &&
|
if (thisOverlay && thisOverlay->getVisible() && thisOverlay->isLoaded() &&
|
||||||
thisOverlay->getBoundingRect().contains(pointCopy.x, pointCopy.y, false)) {
|
thisOverlay->getBoundingRect().contains(pointCopy.x, pointCopy.y, false)) {
|
||||||
|
|
Loading…
Reference in a new issue