mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 18:03:27 +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.
|
int numMeshes = 0; // number of meshes in this model.
|
||||||
for (auto meshIter = _hfmModel->meshes.cbegin(); meshIter != _hfmModel->meshes.cend(); ++meshIter) {
|
for (auto meshIter = _hfmModel->meshes.cbegin(); meshIter != _hfmModel->meshes.cend(); ++meshIter) {
|
||||||
numMeshes++;
|
numMeshes++;
|
||||||
|
if (meshIter->blendshapes.isEmpty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
int numVertsInMesh = meshIter->vertices.size();
|
int numVertsInMesh = meshIter->vertices.size();
|
||||||
numBlendshapeOffsets += numVertsInMesh;
|
numBlendshapeOffsets += numVertsInMesh;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue