Bugfix: Collada loader now translates bone names to proper node names so that users should be able to associate the correct nodes to bones, equal what addressing scheme was used in the Collada file

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@526 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
ulfjorensen
2010-01-10 10:38:52 +00:00
parent 185c30c85b
commit 6d3c8b3bc7
4 changed files with 68 additions and 22 deletions

View File

@@ -1705,8 +1705,8 @@ void ColladaParser::ReadAccessor( const std::string& pID)
/* Generic extra data, interpreted as UV data, too*/
else if( name == "U") acc.mSubOffset[0] = acc.mParams.size();
else if( name == "V") acc.mSubOffset[1] = acc.mParams.size();
else
DefaultLogger::get()->warn( boost::str( boost::format( "Unknown accessor parameter \"%s\". Ignoring data channel.") % name));
//else
// DefaultLogger::get()->warn( boost::str( boost::format( "Unknown accessor parameter \"%s\". Ignoring data channel.") % name));
}
acc.mParams.push_back( name);
@@ -2216,6 +2216,9 @@ void ColladaParser::ReadSceneNode( Node* pNode)
int attrID = TestAttribute( "id");
if( attrID > -1)
child->mID = mReader->getAttributeValue( attrID);
int attrSID = TestAttribute( "sid");
if( attrSID > -1)
child->mSID = mReader->getAttributeValue( attrSID);
int attrName = TestAttribute( "name");
if( attrName > -1)