Browse Source

FBX: add missing inversion of postrotation matrix for fbx.

Kim Kulling 8 years ago
parent
commit
af9596674d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      code/FBXConverter.cpp

+ 4 - 0
code/FBXConverter.cpp

@@ -1065,6 +1065,10 @@ void Converter::GenerateTransformationNodeChain( const Model& model,
                 continue;
             }
 
+            if ( comp == TransformationComp_PostRotation  ) {
+                chain[ i ] = chain[ i ].Inverse();
+            }
+
             aiNode* nd = new aiNode();
             output_nodes.push_back( nd );