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:
parent
2faf44821b
commit
72f87665d4
|
@ -59,7 +59,7 @@ SRayIntersection CRayCollisionTester::TestNodes(const SViewInfo& ViewInfo)
|
||||||
|
|
||||||
if (MidResult.Hit)
|
if (MidResult.Hit)
|
||||||
{
|
{
|
||||||
if ((!Result.Hit) || (MidResult.Distance < Result.Distance))
|
if ((!Result.Hit) || (MidResult.Distance <= Result.Distance))
|
||||||
Result = MidResult;
|
Result = MidResult;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue