mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 01:53:35 +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)) {
|
||||
bool isDrawInFront = thisOverlay->getDrawInFront();
|
||||
bool isTablet = tabletIDs.contains(thisID);
|
||||
if (isDrawInFront && !bestIsFront && !bestIsTablet
|
||||
|| (isTablet || isDrawInFront || !bestIsFront) && thisDistance < bestDistance) {
|
||||
if ((isDrawInFront && !bestIsFront && !bestIsTablet)
|
||||
|| ((isTablet || isDrawInFront || !bestIsFront) && thisDistance < bestDistance)) {
|
||||
bestIsFront = isDrawInFront;
|
||||
bestIsTablet = isTablet;
|
||||
bestDistance = thisDistance;
|
||||
|
|
Loading…
Reference in a new issue