Skip to content

Commit

Permalink
Update ColladaParser.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
elect86 authored Jan 26, 2017
1 parent 0414b9c commit 85e2788
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions code/ColladaParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,18 +683,18 @@ void ColladaParser::ReadController( Collada::Controller& pController)
else if( IsElement( "bind_shape_matrix"))
{
// 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_atoreal_move<ai_real>( content, pController.mBindShapeMatrix[a]);
// skip whitespace after it
SkipSpacesAndLineEnd( &content);
}

TestClosing( "bind_shape_matrix");
const char* content = GetTextContent();

// read the 16 floats
for( unsigned int a = 0; a < 16; a++)
{
// read a number
content = fast_atoreal_move<ai_real>( content, pController.mBindShapeMatrix[a]);
// skip whitespace after it
SkipSpacesAndLineEnd( &content);
}

TestClosing( "bind_shape_matrix");
}
else if( IsElement( "source"))
{
Expand Down

0 comments on commit 85e2788

Please sign in to comment.