FBX: add missing inversion of postrotation matrix for fbx.
authorKim Kulling <kim.kulling@googlemail.com>
Mon, 18 Sep 2017 22:31:41 +0000 (00:31 +0200)
committerKim Kulling <kim.kulling@googlemail.com>
Mon, 18 Sep 2017 22:31:41 +0000 (00:31 +0200)
code/FBXConverter.cpp

index f53ae02..8d85bb8 100644 (file)
@@ -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 );