Removed signed int vs unsigned int comparison in for loops

pull/2050/head
Sebastian Matusik 2018-07-05 15:15:50 +01:00
parent 0cc9240886
commit 992194b1b9
1 changed files with 2 additions and 2 deletions

View File

@ -462,7 +462,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r)
if (target.position.size() > 0) {
aiVector3D *positionDiff = nullptr;
target.position[0]->ExtractData(positionDiff);
for(int vertexId = 0; vertexId < aim->mNumVertices; vertexId++) {
for(unsigned int vertexId = 0; vertexId < aim->mNumVertices; vertexId++) {
aiAnimMesh.mVertices[vertexId] += positionDiff[vertexId];
}
delete [] positionDiff;
@ -470,7 +470,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r)
if (target.normal.size() > 0) {
aiVector3D *normalDiff = nullptr;
target.normal[0]->ExtractData(normalDiff);
for(int vertexId = 0; vertexId < aim->mNumVertices; vertexId++) {
for(unsigned int vertexId = 0; vertexId < aim->mNumVertices; vertexId++) {
aiAnimMesh.mNormals[vertexId] += normalDiff[vertexId];
}
delete [] normalDiff;