Update libraries/model-serializers/src/GLTFSerializer.cpp

Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
ksuprynowicz 2021-12-20 18:49:25 +01:00 committed by GitHub
parent 7106482c58
commit a7883fc588
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1360,7 +1360,7 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
mesh.vertices.push_back(glm::vec3(vertices[n], vertices[n + 1], vertices[n + 2]));
}
for (int n = 0; n + 2 < normals.size(); n = n + normalStride) {
for (int n = 0; n + normalStride - 1 < normals.size(); n = n + normalStride) {
mesh.normals.push_back(glm::vec3(normals[n], normals[n + 1], normals[n + 2]));
}