Fix un-transformed vertex being added to extents instead of transformed one

This commit is contained in:
sabrina-shanman 2019-10-09 13:07:43 -07:00
parent 0b924eea78
commit 726a91cdb9

View file

@ -47,7 +47,7 @@ void calculateExtentsForShape(hfm::Shape& shape, const std::vector<hfm::Mesh>& m
}
const glm::vec3& vertex = mesh.vertices[idx];
const glm::vec3 transformedVertex = glm::vec3(globalTransform * glm::vec4(vertex, 1.0f));
shapeExtents.addPoint(vertex);
shapeExtents.addPoint(transformedVertex);
});
thickenFlatExtents(shapeExtents);