Added Node::getName() and getUserDataContainer() to check to see if an node can be removed or not.

This commit is contained in:
Robert Osfield 2012-11-09 21:23:42 +00:00
parent 36f6ef7242
commit fd4126dc59

View File

@ -1410,11 +1410,11 @@ bool Optimizer::RemoveRedundantNodesVisitor::isOperationPermissible(osg::Node& n
{
return node.getNumParents()>0 &&
!node.getStateSet() &&
!node.getUserData() &&
node.getName().empty() &&
!node.getUserDataContainer() &&
!node.getCullCallback() &&
!node.getEventCallback() &&
!node.getUpdateCallback() &&
node.getDescriptions().empty() &&
isOperationPermissibleForObject(&node);
}