Browse Source

Merge pull request #1152 from elect86/patch-6

Update ColladaParser.cpp
Alexander Gessler 8 năm trước cách đây
mục cha
commit
696b6c1e97
1 tập tin đã thay đổi với 12 bổ sung12 xóa
  1. 12 12
      code/ColladaParser.cpp

+ 12 - 12
code/ColladaParser.cpp

@@ -683,18 +683,18 @@ void ColladaParser::ReadController( Collada::Controller& pController)
             else if( IsElement( "bind_shape_matrix"))
             else if( IsElement( "bind_shape_matrix"))
             {
             {
                 // content is 16 floats to define a matrix... it seems to be important for some models
                 // 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"))
             else if( IsElement( "source"))
             {
             {