From 43901146702862972c65289935a7a62e230e9f49 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 9 Jan 2004 14:07:26 +0000 Subject: [PATCH] From Romano Magacho, add group->setName() to flattening of static transforms --- src/osgUtil/Optimizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osgUtil/Optimizer.cpp b/src/osgUtil/Optimizer.cpp index 691d56f80..95935c62b 100644 --- a/src/osgUtil/Optimizer.cpp +++ b/src/osgUtil/Optimizer.cpp @@ -829,6 +829,7 @@ bool CollectLowestTransformsVisitor::removeTransforms(osg::Node* nodeWeCannotRem osg::ref_ptr transform = titr->first; osg::ref_ptr group = new osg::Group; + group->setName( transform->getName() ); group->setDataVariance(osg::Object::STATIC); for(unsigned int i=0;igetNumChildren();++i) {