This commit is contained in:
scrawl 2017-03-04 21:47:11 +01:00
parent 4123398cbc
commit c1b1d502ee

View file

@ -802,8 +802,7 @@ bool Optimizer::RemoveRedundantNodesVisitor::isOperationPermissible(osg::Node& n
void Optimizer::RemoveRedundantNodesVisitor::apply(osg::Group& group)
{
if (group.getNumChildren()==1 &&
typeid(group)==typeid(osg::Group) &&
if (typeid(group)==typeid(osg::Group) &&
isOperationPermissible(group))
{
_redundantNodeList.insert(&group);