mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 08:23:04 +02:00
hook up overlaysToDiscard and overlaysToInclude in Overlays::findRayIntersection
This commit is contained in:
parent
81f6344023
commit
2b02998fae
1 changed files with 8 additions and 2 deletions
|
@ -412,6 +412,12 @@ RayToOverlayIntersectionResult Overlays::findRayIntersection(const PickRay& ray,
|
|||
i.previous();
|
||||
OverlayID thisID = i.key();
|
||||
auto thisOverlay = std::dynamic_pointer_cast<Base3DOverlay>(i.value());
|
||||
|
||||
if ((overlaysToDiscard.size() > 0 && overlaysToDiscard.contains(thisID)) ||
|
||||
(overlaysToInclude.size() > 0 && !overlaysToInclude.contains(thisID))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (thisOverlay && thisOverlay->getVisible() && !thisOverlay->getIgnoreRayIntersection() && thisOverlay->isLoaded()) {
|
||||
float thisDistance;
|
||||
BoxFace thisFace;
|
||||
|
|
Loading…
Reference in a new issue