From 8f226faae86ba0d6bc822db532f8c9c1040978f6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 9 Mar 2004 21:33:44 +0000 Subject: [PATCH] From Tom Jolly, addition a isCullingActive check to the culling test done on drawables. This solves a osgParticle bug relating to bounding boxes being initially at 0,0,0. --- src/osgUtil/CullVisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgUtil/CullVisitor.cpp b/src/osgUtil/CullVisitor.cpp index d321da449..6e8c9fbef 100644 --- a/src/osgUtil/CullVisitor.cpp +++ b/src/osgUtil/CullVisitor.cpp @@ -364,7 +364,7 @@ void CullVisitor::apply(Geode& node) } else { - if (isCulled(bb)) continue; + if (node.isCullingActive() && isCulled(bb)) continue; }