mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Update libraries/model-serializers/src/GLTFSerializer.cpp
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
7106482c58
commit
a7883fc588
1 changed files with 1 additions and 1 deletions
|
@ -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]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue