mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-13 18:52:41 +02:00
Fix not building due to removed shape.transform
This commit is contained in:
parent
0c3e81f52f
commit
acbdd2b3b5
2 changed files with 2 additions and 2 deletions
|
@ -1524,7 +1524,7 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
|||
hfmModel.shapes.push_back(templateShape);
|
||||
auto& hfmShape = hfmModel.shapes.back();
|
||||
// Everything else is already defined (mesh, meshPart, material), so just define the new transform
|
||||
hfmShape.transform = nodeIndex;
|
||||
hfmShape.joint = nodeIndex;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ void calculateExtentsForShape(hfm::Shape& shape, const std::vector<hfm::Mesh>& m
|
|||
const auto& mesh = meshes[shape.mesh];
|
||||
const auto& meshPart = mesh.parts[shape.meshPart];
|
||||
|
||||
glm::mat4 globalTransform = joints[shape.transform].globalTransform;
|
||||
glm::mat4 globalTransform = joints[shape.joint].globalTransform;
|
||||
forEachIndex(meshPart, [&](int32_t idx){
|
||||
if (mesh.vertices.size() <= idx) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue