From dcb70aa50467dbdf6264cb00f3f79dd7e8da0882 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Fri, 12 May 2017 19:03:08 -0700 Subject: [PATCH] more cleanup --- libraries/shared/src/TriangleSet.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/shared/src/TriangleSet.cpp b/libraries/shared/src/TriangleSet.cpp index 2b6e12f005..cd3f829d93 100644 --- a/libraries/shared/src/TriangleSet.cpp +++ b/libraries/shared/src/TriangleSet.cpp @@ -99,8 +99,8 @@ bool TriangleSet::TriangleOctreeCell::findRayIntersectionInternal(const glm::vec float& distance, BoxFace& face, glm::vec3& surfaceNormal, bool precision, int& trianglesTouched) { bool intersectedSomething = false; - float boxDistance = distance; // std::numeric_limits::max(); - float bestDistance = distance; // std::numeric_limits::max(); + float boxDistance = distance; + float bestDistance = distance; if (_bounds.findRayIntersection(origin, direction, boxDistance, face, surfaceNormal)) { @@ -218,7 +218,7 @@ bool TriangleSet::TriangleOctreeCell::findRayIntersection(const glm::vec3& origi return false; // no triangles below here, so we can't intersect } - float bestLocalDistance = distance; // std::numeric_limits::max(); + float bestLocalDistance = distance; BoxFace bestLocalFace; glm::vec3 bestLocalNormal; bool intersects = false; @@ -232,9 +232,9 @@ bool TriangleSet::TriangleOctreeCell::findRayIntersection(const glm::vec3& origi return false; } - bestLocalDistance = distance; // std::numeric_limits::max(); + bestLocalDistance = distance; - float childDistance = distance; // std::numeric_limits::max(); + float childDistance = distance; BoxFace childFace; glm::vec3 childNormal;