Added Node::getName() and getUserDataContainer() to check to see if an node can be removed or not.
This commit is contained in:
parent
36f6ef7242
commit
fd4126dc59
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user