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