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:
parent
9146ba7d44
commit
a68f0f26a8
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user