Kaynağa Gözat

FBX: add missing inversion of postrotation matrix for fbx.

Kim Kulling 8 yıl önce
ebeveyn
işleme
af9596674d
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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 );