mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Make blendshapes work for glTF with multiple mesh parts
This commit is contained in:
parent
a819b140dc
commit
128745ef36
1 changed files with 2 additions and 1 deletions
|
@ -1593,8 +1593,9 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
|||
generateTargetData(target.values.value((QString) "POSITION"), weight, vertices);
|
||||
}
|
||||
|
||||
auto blendshapeIndicesCount = blendshape.indices.count();
|
||||
for (int i = 0; i < vertices.size(); i++) {
|
||||
blendshape.indices.push_back(i);
|
||||
blendshape.indices.push_back(blendshapeIndicesCount + i);
|
||||
blendshape.vertices.push_back(vertices.value(i));
|
||||
blendshape.normals.push_back(normals.value(i));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue