Преглед изворни кода

Update FBXConverter.cpp

- Temporary fix bind pose storage in offset matrix
- Will close https://github.com/assimp/assimp/issues/5132
Kim Kulling пре 1 година
родитељ
комит
384db8686e
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      code/AssetLib/FBX/FBXConverter.cpp

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

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