From 0a68608bc4c2b19747de51f97c9739b5d5ae4a59 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 10 Apr 2003 08:25:30 +0000 Subject: [PATCH] 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. --- src/osgSim/LightPointNode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osgSim/LightPointNode.cpp b/src/osgSim/LightPointNode.cpp index 38e15d5dd..a82f766ce 100644 --- a/src/osgSim/LightPointNode.cpp +++ b/src/osgSim/LightPointNode.cpp @@ -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;