From Farshid Lashkari, "previously discussed change to the dae loader which applies the node ID as a "dae_node_id" user value."

This commit is contained in:
Robert Osfield 2013-10-18 09:57:49 +00:00
parent 9146ba7d44
commit a68f0f26a8

View File

@ -17,6 +17,7 @@
#include <dom/domCOLLADA.h>
#include <dom/domInstanceWithExtra.h>
#include <dom/domConstants.h>
#include <osg/ValueObject>
#include <osg/MatrixTransform>
#include <osg/PositionAttitudeTransform>
@ -585,7 +586,10 @@ osg::Node* daeReader::processNode( domNode *node, bool skeleton)
{
std::string name = "";
if (node->getId())
{
name = node->getId();
resultNode->setUserValue("dae_node_id", name);
}
if (node->getName())
name = node->getName();
resultNode->setName( name );