From Mathias Froehlich, "In Optimizer.cpp a nodes update callback is checked twice and the cull
callback is checked never for the decision of a node being redundant. The change replaces one of the update callback tests with a cull callback test."
This commit is contained in:
@@ -1411,7 +1411,7 @@ bool Optimizer::RemoveRedundantNodesVisitor::isOperationPermissible(osg::Node& n
|
||||
return node.getNumParents()>0 &&
|
||||
!node.getStateSet() &&
|
||||
!node.getUserData() &&
|
||||
!node.getUpdateCallback() &&
|
||||
!node.getCullCallback() &&
|
||||
!node.getEventCallback() &&
|
||||
!node.getUpdateCallback() &&
|
||||
node.getDescriptions().empty() &&
|
||||
|
||||
Reference in New Issue
Block a user