Bugfix: fixed rather stupid typo in Collada anim keyframe interpolation

Bugfix: Collada Loader now respects skin controller bind shape matrix

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@549 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
ulfjorensen
2010-02-22 18:06:50 +00:00
parent 4f6acc817e
commit 993ca25cdb
3 changed files with 37 additions and 4 deletions

View File

@@ -479,9 +479,19 @@ void ColladaParser::ReadController( Collada::Controller& pController)
}
else if( IsElement( "bind_shape_matrix"))
{
// content is 16 floats to define some sort of matrix... I'm going to ignore this
// as long as I don't have a clue how to interpret it
SkipElement();
// content is 16 floats to define a matrix... it seems to be important for some models
const char* content = GetTextContent();
// read the 16 floats
for( unsigned int a = 0; a < 16; a++)
{
// read a number
content = fast_atof_move( content, pController.mBindShapeMatrix[a]);
// skip whitespace after it
SkipSpacesAndLineEnd( &content);
}
TestClosing( "bind_shape_matrix");
}
else if( IsElement( "source"))
{