mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +02:00
Fix OSX/Linux warnings
This commit is contained in:
parent
e339f966d9
commit
9b4c5e1685
1 changed files with 2 additions and 2 deletions
|
@ -557,8 +557,8 @@ RayToOverlayIntersectionResult Overlays::findRayIntersectionVector(const PickRay
|
||||||
thisFace, thisSurfaceNormal, thisExtraInfo, precisionPicking)) {
|
thisFace, thisSurfaceNormal, thisExtraInfo, precisionPicking)) {
|
||||||
bool isDrawInFront = thisOverlay->getDrawInFront();
|
bool isDrawInFront = thisOverlay->getDrawInFront();
|
||||||
bool isTablet = tabletIDs.contains(thisID);
|
bool isTablet = tabletIDs.contains(thisID);
|
||||||
if (isDrawInFront && !bestIsFront && !bestIsTablet
|
if ((isDrawInFront && !bestIsFront && !bestIsTablet)
|
||||||
|| (isTablet || isDrawInFront || !bestIsFront) && thisDistance < bestDistance) {
|
|| ((isTablet || isDrawInFront || !bestIsFront) && thisDistance < bestDistance)) {
|
||||||
bestIsFront = isDrawInFront;
|
bestIsFront = isDrawInFront;
|
||||||
bestIsTablet = isTablet;
|
bestIsTablet = isTablet;
|
||||||
bestDistance = thisDistance;
|
bestDistance = thisDistance;
|
||||||
|
|
Loading…
Reference in a new issue