mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:24:08 +02:00
Disable GLTF skinning
This commit is contained in:
parent
d497052505
commit
1fe1321b6c
1 changed files with 18 additions and 0 deletions
|
@ -1543,6 +1543,24 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: Fix skinning and remove this workaround which disables skinning
|
||||
{
|
||||
std::vector<int> meshToRootJoint;
|
||||
meshToRootJoint.resize(hfmModel.meshes.size(), -1);
|
||||
std::vector<uint16_t> meshToClusterSize;
|
||||
meshToClusterSize.resize(hfmModel.meshes.size());
|
||||
for (auto& shape : hfmModel.shapes) {
|
||||
shape.skinDeformer = hfm::UNDEFINED_KEY;
|
||||
}
|
||||
|
||||
for (auto& mesh : hfmModel.meshes) {
|
||||
mesh.clusterWeights.clear();
|
||||
mesh.clusterIndices.clear();
|
||||
mesh.clusterWeightsPerVertex = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue