mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
Fix GLTF claiming to have no cluster weights when it is skinned
This commit is contained in:
parent
6db993fe05
commit
d497052505
1 changed files with 1 additions and 0 deletions
|
@ -1394,6 +1394,7 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
|||
uint16_t weight = std::round(clusterWeights[weightIndex] * 65535.0);
|
||||
mesh.clusterWeights.push_back(weight);
|
||||
}
|
||||
mesh.clusterWeightsPerVertex = WEIGHTS_PER_VERTEX;
|
||||
}
|
||||
|
||||
if (joints.size() == partVerticesCount * jointStride) {
|
||||
|
|
Loading…
Reference in a new issue