1
0
Fork 0

A bounding sphere may be empty, which is perfectly valid.

Such empty spheres have negative radius, but undefined center.
This commit is contained in:
ehofman 2003-06-04 09:57:11 +00:00
parent 15c54b57f9
commit f46bda0621

View file

@ -348,7 +348,8 @@ void FGHitList::IntersectBranch( ssgBranch *branch, sgdMat4 m,
kid != NULL; kid != NULL;
kid = branch->getNextKid() ) kid = branch->getNextKid() )
{ {
if ( kid->getTraversalMask() & SSGTRAV_HOT ) if ( kid->getTraversalMask() & SSGTRAV_HOT
&& !kid->getBSphere()->isEmpty() )
{ {
sgdVec3 center; sgdVec3 center;
sgdSetVec3( center, sgdSetVec3( center,