From Brede, added

if (cv->getComputeNearFarMode() != osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR)
to protect
  cv->updateCalculatedNearFar(matrix,_bbox);
call to avoid inapporpriate near/far warnings.
This commit is contained in:
Robert Osfield 2003-04-10 08:25:30 +00:00
parent 2166f9b701
commit 0a68608bc4

View File

@ -202,7 +202,9 @@ void LightPointNode::traverse(osg::NodeVisitor& nv)
t7 = timer.tick();
#endif
cv->updateCalculatedNearFar(matrix,_bbox);
if (cv->getComputeNearFarMode() != osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR)
cv->updateCalculatedNearFar(matrix,_bbox);
const float minimumIntensity = 1.0f/256.0f;