From 85e2788e50ab72779ac6b0454ae2a7d978046e07 Mon Sep 17 00:00:00 2001 From: Giuseppe Barbieri Date: Thu, 26 Jan 2017 17:28:39 +0100 Subject: [PATCH 1/2] Update ColladaParser.cpp --- code/ColladaParser.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/code/ColladaParser.cpp b/code/ColladaParser.cpp index 2fa3aa7d5..eb9d2abc0 100644 --- a/code/ColladaParser.cpp +++ b/code/ColladaParser.cpp @@ -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(); + const char* content = GetTextContent(); - // read the 16 floats - for( unsigned int a = 0; a < 16; a++) - { - // read a number - content = fast_atoreal_move( content, pController.mBindShapeMatrix[a]); - // skip whitespace after it - SkipSpacesAndLineEnd( &content); - } + // read the 16 floats + for( unsigned int a = 0; a < 16; a++) + { + // read a number + content = fast_atoreal_move( content, pController.mBindShapeMatrix[a]); + // skip whitespace after it + SkipSpacesAndLineEnd( &content); + } - TestClosing( "bind_shape_matrix"); + TestClosing( "bind_shape_matrix"); } else if( IsElement( "source")) { From 0434f5a5ff1f0726562d7434c6b81232076f80be Mon Sep 17 00:00:00 2001 From: Giuseppe Barbieri Date: Thu, 26 Jan 2017 17:29:31 +0100 Subject: [PATCH 2/2] Update ColladaParser.cpp --- code/ColladaParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ColladaParser.cpp b/code/ColladaParser.cpp index eb9d2abc0..c61ca251c 100644 --- a/code/ColladaParser.cpp +++ b/code/ColladaParser.cpp @@ -694,7 +694,7 @@ void ColladaParser::ReadController( Collada::Controller& pController) SkipSpacesAndLineEnd( &content); } - TestClosing( "bind_shape_matrix"); + TestClosing( "bind_shape_matrix"); } else if( IsElement( "source")) {