Fixed problem with Optimzer::removeRedundentNodesVisitor which was removing the correct redundent groups but for groups which had a single child it was was not using replaceChild to rettach the child to its parents. It was using parent->removeChild(group)...parent->addChild(child); which was allow the child to be attached in a different place than the original group, this broke LOD code. Have used removeChild instead which solves the LOD problem.
Fixed problem with Optimzer::removeRedundentNodesVisitor which was removing the
correct redundent groups but for groups which had a single child it was
was not using replaceChild to rettach the child to its parents. It was using
parent->removeChild(group)...parent->addChild(child); which was allow the child
to be attached in a different place than the original group, this broke LOD code.
Have used removeChild instead which solves the LOD problem.


openscenegraph/osg,tomasthoresen/osg,tomasthoresen/osg,scrawl/osg,scrawl/osg,jtorresfabra/osg,artoolkit/osg,openscenegraph/osg,tomasthoresen/osg,tomasthoresen/osg,jtorresfabra/osg,marchelbling/osg,artoolkit/osg,scrawl/osg,artoolkit/osg,scrawl/osg,artoolkit/osg,jtorresfabra/osg,marchelbling/osg,marchelbling/osg,openscenegraph/osg,openscenegraph/osg,marchelbling/osg,jtorresfabra/osg