Fix hasBlendedMeshes() value

This commit is contained in:
David Rowe 2020-08-31 21:44:19 +12:00
parent bd1be872a8
commit 22e6ae9710

View file

@ -1571,7 +1571,9 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
} }
// Create blendshapes. // Create blendshapes.
if (!blendshapeIndices.isEmpty()) {
mesh.blendshapes.resize((int)Blendshapes::BlendshapeCount); mesh.blendshapes.resize((int)Blendshapes::BlendshapeCount);
}
auto keys = blendshapeIndices.keys(); auto keys = blendshapeIndices.keys();
auto values = blendshapeIndices.values(); auto values = blendshapeIndices.values();
auto names = _file.meshes[node.mesh].extras.targetNames; auto names = _file.meshes[node.mesh].extras.targetNames;