update traversedebug preventing traversal to disable OQN

This commit is contained in:
Julien Valentin 2019-06-08 01:17:21 +02:00 committed by GitHub
parent 5311d6fb6b
commit cfd190a9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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