Changeset 8293

Show
Ignore:
Timestamp:
05/08/08 19:02:08
Author:
robert
Message:

Added missing check against handling invalid bounding sphere's

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenSceneGraph/trunk/src/osg/BoundingSphere.cpp

    r8038 r8293  
    9494void BoundingSphere::expandBy(const BoundingSphere& sh) 
    9595{ 
     96    // ignore operation if incomming BoundingSphere is invalid. 
     97    if (!sh.valid()) return; 
    9698 
    9799    // This sphere is not set so use the inbound sphere 
     
    103105        return; 
    104106    } 
    105  
     107     
    106108     
    107109    // Calculate d == The distance between the sphere centers