From d3b1ee6b5743434730b7e50647ecf1f81fa1abd3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 8 Nov 2005 09:36:42 +0000 Subject: [PATCH] Changed the occluder traversal so that checks the children of the SceneView's Cameara rather than starting at the camera itself. --- src/osgUtil/SceneView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osgUtil/SceneView.cpp b/src/osgUtil/SceneView.cpp index 287475516..2cc1f6a1c 100644 --- a/src/osgUtil/SceneView.cpp +++ b/src/osgUtil/SceneView.cpp @@ -607,7 +607,10 @@ void SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod _collectOccludersVisistor->pushModelViewMatrix(mv.get()); // traverse the scene graph to search for occluder in there new positions. - _camera->accept(*_collectOccludersVisistor); + for(unsigned int i=0; i< _camera->getNumChildren(); ++i) + { + _camera->getChild(i)->accept(*_collectOccludersVisistor); + } _collectOccludersVisistor->popModelViewMatrix(); _collectOccludersVisistor->popProjectionMatrix();