瀏覽代碼

FbxConverter, bone mOffsetMatrix update

Mykhailo418 3 年之前
父節點
當前提交
863e3e0ccb
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      code/AssetLib/FBX/FBXConverter.cpp

+ 3 - 1
code/AssetLib/FBX/FBXConverter.cpp

@@ -1553,14 +1553,16 @@ void FBXConverter::ConvertCluster(std::vector<aiBone *> &local_mesh_bones, const
         bone = new aiBone();
         bone->mName = bone_name;
 
+        bone->mOffsetMatrix = cl->Transform();
         // store local transform link for post processing
+        /*
         bone->mOffsetMatrix = cl->TransformLink();
         bone->mOffsetMatrix.Inverse();
 
         aiMatrix4x4 matrix = (aiMatrix4x4)absolute_transform;
 
         bone->mOffsetMatrix = bone->mOffsetMatrix * matrix; // * mesh_offset
-
+        */
         //
         // Now calculate the aiVertexWeights
         //