A bounding sphere may be empty, which is perfectly valid.
Such empty spheres have negative radius, but undefined center.
This commit is contained in:
parent
15c54b57f9
commit
f46bda0621
1 changed files with 2 additions and 1 deletions
|
@ -348,7 +348,8 @@ void FGHitList::IntersectBranch( ssgBranch *branch, sgdMat4 m,
|
|||
kid != NULL;
|
||||
kid = branch->getNextKid() )
|
||||
{
|
||||
if ( kid->getTraversalMask() & SSGTRAV_HOT )
|
||||
if ( kid->getTraversalMask() & SSGTRAV_HOT
|
||||
&& !kid->getBSphere()->isEmpty() )
|
||||
{
|
||||
sgdVec3 center;
|
||||
sgdSetVec3( center,
|
||||
|
|
Loading…
Add table
Reference in a new issue