Allow coplanar ray intersections (fixes an issue with the ray hit node not matching what's visibly on top in the viewport)

This commit is contained in:
parax0 2015-12-16 19:43:21 -07:00
parent 2faf44821b
commit 72f87665d4
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ SRayIntersection CRayCollisionTester::TestNodes(const SViewInfo& ViewInfo)
if (MidResult.Hit)
{
if ((!Result.Hit) || (MidResult.Distance < Result.Distance))
if ((!Result.Hit) || (MidResult.Distance <= Result.Distance))
Result = MidResult;
}
}