1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-23 12:37:45 +00:00

Fix assimp API change

This commit is contained in:
Joshua Goins 2023-07-07 15:51:16 -04:00
parent 635cf15f2c
commit a6d0728e83

View file

@ -282,7 +282,7 @@ void MDLPart::exportModel(const QString &fileName) {
mesh->mBones[j]->mName = models[0].model.affected_bone_names[j];
mesh->mBones[j]->mNumWeights = mesh->mNumVertices * 4;
mesh->mBones[j]->mWeights = new aiVertexWeight[mesh->mBones[j]->mNumWeights];
mesh->mBones[j]->mNode = skeleton_node->mChildren[j];
// mesh->mBones[j]->mNode = skeleton_node->mChildren[j];
for(int k = 0; k < mesh->mNumVertices; k++) {
for(int z = 0; z < 4; z++) {