From 84983020bedc303db96c50f865f2dee241284939 Mon Sep 17 00:00:00 2001 From: Julien Valentin Date: Sat, 8 Jun 2019 01:17:21 +0200 Subject: [PATCH] update traversedebug preventing traversal to disable OQN --- src/osg/OcclusionQueryNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/OcclusionQueryNode.cpp b/src/osg/OcclusionQueryNode.cpp index 78ce7f3b5..5db9255bf 100644 --- a/src/osg/OcclusionQueryNode.cpp +++ b/src/osg/OcclusionQueryNode.cpp @@ -575,7 +575,7 @@ void OcclusionQueryNode::traverseQuery( const Camera* camera, NodeVisitor& nv ) void OcclusionQueryNode::traverseDebug( NodeVisitor& nv ) { - if (_debugBB) + if (_debugBB && _enabled) // If requested, display the debug geometry _debugGeode->accept( nv ); }