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."

This commit is contained in:
Robert Osfield
2006-10-03 19:55:24 +00:00
parent 1c749e95d6
commit fecb63785f

View File

@@ -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++ )
{