Fix not building due to removed shape.transform

This commit is contained in:
sabrina-shanman 2019-10-16 17:04:19 -07:00
parent 0c3e81f52f
commit acbdd2b3b5
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -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;