mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
fixed bug
This commit is contained in:
parent
e9e8390bbc
commit
1cf59e8d67
@ -539,23 +539,20 @@ namespace AssetStudio
|
|||||||
for (int j = 0; j < boneList->Count; j++)
|
for (int j = 0; j < boneList->Count; j++)
|
||||||
{
|
{
|
||||||
FbxCluster* pCluster = pClusterArray->GetAt(j);
|
FbxCluster* pCluster = pClusterArray->GetAt(j);
|
||||||
if (pCluster->GetControlPointIndicesCount() > 0)
|
auto boneMatrix = boneList[j]->Matrix;
|
||||||
|
FbxAMatrix lBoneMatrix;
|
||||||
|
for (int m = 0; m < 4; m++)
|
||||||
{
|
{
|
||||||
auto boneMatrix = boneList[j]->Matrix;
|
for (int n = 0; n < 4; n++)
|
||||||
FbxAMatrix lBoneMatrix;
|
|
||||||
for (int m = 0; m < 4; m++)
|
|
||||||
{
|
{
|
||||||
for (int n = 0; n < 4; n++)
|
lBoneMatrix.mData[m][n] = boneMatrix[m, n];
|
||||||
{
|
|
||||||
lBoneMatrix.mData[m][n] = boneMatrix[m, n];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pCluster->SetTransformMatrix(lMeshMatrix);
|
|
||||||
pCluster->SetTransformLinkMatrix(lMeshMatrix * lBoneMatrix.Inverse());
|
|
||||||
|
|
||||||
pSkin->AddCluster(pCluster);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pCluster->SetTransformMatrix(lMeshMatrix);
|
||||||
|
pCluster->SetTransformLinkMatrix(lMeshMatrix * lBoneMatrix.Inverse());
|
||||||
|
|
||||||
|
pSkin->AddCluster(pCluster);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pSkin->GetClusterCount() > 0)
|
if (pSkin->GetClusterCount() > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user