Update FBXConverter.cpp

- Temporary fix bind pose storage in offset matrix
- Will close https://github.com/assimp/assimp/issues/5132
This commit is contained in:
Kim Kulling
2023-11-28 20:49:10 +01:00
parent 77a8f019e3
commit 384db8686e
+3 -3
View File
@@ -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
//