Fix bug that was packing zero offsets that were never used

This commit is contained in:
Ken Cooke 2019-06-23 08:00:13 -07:00
parent a66bd04810
commit 9e309b095d

View file

@ -1738,6 +1738,9 @@ void Blender::run() {
int numMeshes = 0; // number of meshes in this model.
for (auto meshIter = _hfmModel->meshes.cbegin(); meshIter != _hfmModel->meshes.cend(); ++meshIter) {
numMeshes++;
if (meshIter->blendshapes.isEmpty()) {
continue;
}
int numVertsInMesh = meshIter->vertices.size();
numBlendshapeOffsets += numVertsInMesh;
}