Fix incorrect index

closes https://github.com/assimp/assimp/issues/3364
pull/3369/head
Kim Kulling 2020-08-11 19:57:36 +02:00 committed by GitHub
parent f90bb2ca26
commit 729882debb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ aiMesh *StandardShapes::MakeMesh(const std::vector<aiVector3D> &positions,
aiFace &f = out->mFaces[i]; aiFace &f = out->mFaces[i];
f.mNumIndices = numIndices; f.mNumIndices = numIndices;
f.mIndices = new unsigned int[numIndices]; f.mIndices = new unsigned int[numIndices];
for (unsigned int j = 0; i < numIndices; ++i, ++a) { for (unsigned int j = 0; j < numIndices; ++j, ++a) {
f.mIndices[j] = a; f.mIndices[j] = a;
} }
} }