From Romano Magacho, add group->setName() to flattening of static transforms

This commit is contained in:
Robert Osfield 2004-01-09 14:07:26 +00:00
parent 5241ca2f2c
commit 4390114670

View File

@ -829,6 +829,7 @@ bool CollectLowestTransformsVisitor::removeTransforms(osg::Node* nodeWeCannotRem
osg::ref_ptr<osg::Transform> transform = titr->first;
osg::ref_ptr<osg::Group> group = new osg::Group;
group->setName( transform->getName() );
group->setDataVariance(osg::Object::STATIC);
for(unsigned int i=0;i<transform->getNumChildren();++i)
{