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:53 +00:00
parent 790c0091e6
commit ca8f3d5f8a

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 );