mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Fixes indexing for vertex weights.
This commit is contained in:
parent
90577661dc
commit
e1a68786ae
1 changed files with 2 additions and 2 deletions
|
|
@ -218,7 +218,7 @@ void AssimpAppMesh::lockMesh(F32 t, const MatrixF& objOffset)
|
||||||
boneTransform.setRow(3, Point4F(mMeshData->mBones[b]->mOffsetMatrix.d1, mMeshData->mBones[b]->mOffsetMatrix.d2, mMeshData->mBones[b]->mOffsetMatrix.d3, mMeshData->mBones[b]->mOffsetMatrix.d4));
|
boneTransform.setRow(3, Point4F(mMeshData->mBones[b]->mOffsetMatrix.d1, mMeshData->mBones[b]->mOffsetMatrix.d2, mMeshData->mBones[b]->mOffsetMatrix.d3, mMeshData->mBones[b]->mOffsetMatrix.d4));
|
||||||
|
|
||||||
//boneTransform.inverse();
|
//boneTransform.inverse();
|
||||||
//AssimpAppNode::convertMat(boneTransform); // Will need a better animated reference shape to determine if this is needed.
|
//AssimpAppNode::convertMat(boneTransform);
|
||||||
//boneTransform.inverse();
|
//boneTransform.inverse();
|
||||||
initialTransforms.push_back(boneTransform);
|
initialTransforms.push_back(boneTransform);
|
||||||
|
|
||||||
|
|
@ -231,7 +231,7 @@ void AssimpAppMesh::lockMesh(F32 t, const MatrixF& objOffset)
|
||||||
|
|
||||||
for (U32 w = 0; w < numWeights; ++w)
|
for (U32 w = 0; w < numWeights; ++w)
|
||||||
{
|
{
|
||||||
aiVertexWeight* aiWeight = mMeshData->mBones[b]->mWeights;
|
aiVertexWeight* aiWeight = &mMeshData->mBones[b]->mWeights[w];
|
||||||
|
|
||||||
weight[w] = aiWeight->mWeight;
|
weight[w] = aiWeight->mWeight;
|
||||||
vertexIndex[w] = aiWeight->mVertexId;
|
vertexIndex[w] = aiWeight->mVertexId;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue