From fecb63785f22e9e67fab1084a1271043660df1ee Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 3 Oct 2006 19:55:24 +0000 Subject: [PATCH] From John Aughey, "The id name of nodes are not being set in the daeReader::processNode method. The names are retained in most of the other osg::Nodes that are created. In this case, I have an external modeler creating models, and the name of component nodes are used to give that subtree different characteristics." --- src/osgPlugins/dae/daeReader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPlugins/dae/daeReader.cpp b/src/osgPlugins/dae/daeReader.cpp index afa4b708a..3eb0eee1f 100644 --- a/src/osgPlugins/dae/daeReader.cpp +++ b/src/osgPlugins/dae/daeReader.cpp @@ -115,6 +115,8 @@ osg::Node* daeReader::processNode( domNode *node ) osg::Node *retVal = new osg::Group(); osg::Node *current = retVal; + retVal->setName( node->getId() ? node->getId() : "" ); + size_t count = node->getContents().getCount(); for ( size_t i = 0; i < count; i++ ) {