Fix GLTF claiming to have no cluster weights when it is skinned

This commit is contained in:
sabrina-shanman 2019-10-23 17:13:34 -07:00
parent 6db993fe05
commit d497052505

View file

@ -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) {