mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 09:33:29 +02:00
Fix bug that was packing zero offsets that were never used
This commit is contained in:
parent
a66bd04810
commit
9e309b095d
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue