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:
@@ -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++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user