optimizer: remove hardcoded condition in RemoveRedundantNodesVisitor

pull/167/head
scrawl 8 years ago
parent 698738c649
commit af716d4b61

@ -789,8 +789,6 @@ bool Optimizer::RemoveRedundantNodesVisitor::isOperationPermissible(osg::Node& n
{ {
return node.getNumParents()>0 && return node.getNumParents()>0 &&
!node.getStateSet() && !node.getStateSet() &&
node.getName().empty() &&
!node.getUserDataContainer() &&
!node.getCullCallback() && !node.getCullCallback() &&
!node.getEventCallback() && !node.getEventCallback() &&
!node.getUpdateCallback() && !node.getUpdateCallback() &&

Loading…
Cancel
Save