update traversedebug preventing traversal to disable OQN

This commit is contained in:
Julien Valentin 2019-06-08 01:17:21 +02:00 committed by Robert Osfield
parent 73dfe77d09
commit 84983020be

View File

@ -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 );
}