Bugfix: Collada node instances are correctly loaded and resolved now.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@752 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
ulfjorensen 2010-06-07 14:02:56 +00:00
parent a9161ede18
commit 2e909b35d8
1 changed files with 4 additions and 4 deletions

View File

@ -2264,9 +2264,9 @@ void ColladaParser::ReadSceneNode( Node* pNode)
int attrID = TestAttribute( "id"); int attrID = TestAttribute( "id");
if( attrID > -1) if( attrID > -1)
child->mID = mReader->getAttributeValue( attrID); child->mID = mReader->getAttributeValue( attrID);
int attrSID = TestAttribute( "sid"); int attrSID = TestAttribute( "sid");
if( attrSID > -1) if( attrSID > -1)
child->mSID = mReader->getAttributeValue( attrSID); child->mSID = mReader->getAttributeValue( attrSID);
int attrName = TestAttribute( "name"); int attrName = TestAttribute( "name");
if( attrName > -1) if( attrName > -1)
@ -2284,7 +2284,7 @@ void ColladaParser::ReadSceneNode( Node* pNode)
{ {
// no parent node given, probably called from <library_nodes> element. // no parent node given, probably called from <library_nodes> element.
// create new node in node library // create new node in node library
mNodeLibrary[child->mID] = pNode = child; mNodeLibrary[child->mID] = child;
} }
// read on recursively from there // read on recursively from there