Merge branch 'patch-27' of https://github.com/mp3butcher/OpenSceneGraph into patch-27

This commit is contained in:
Robert Osfield 2019-07-01 13:42:33 +01:00
commit 5fc917881d

View File

@ -556,7 +556,7 @@ bool OcclusionQueryNode::getPassed( const Camera* camera, NodeVisitor& nv )
void OcclusionQueryNode::traverseQuery( const Camera* camera, NodeVisitor& nv ) void OcclusionQueryNode::traverseQuery( const Camera* camera, NodeVisitor& nv )
{ {
if (!_validQueryGeometry) if (!_validQueryGeometry || ! _enabled)
return; return;
bool issueQuery; bool issueQuery;
@ -575,7 +575,7 @@ void OcclusionQueryNode::traverseQuery( const Camera* camera, NodeVisitor& nv )
void OcclusionQueryNode::traverseDebug( NodeVisitor& nv ) void OcclusionQueryNode::traverseDebug( NodeVisitor& nv )
{ {
if (_debugBB) if (_debugBB && _enabled)
// If requested, display the debug geometry // If requested, display the debug geometry
_debugGeode->accept( nv ); _debugGeode->accept( nv );
} }