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:
Robert Osfield
2012-02-06 13:45:20 +00:00
parent 5d50913722
commit 251827c994

View File

@@ -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() &&