From 726a91cdb98f0b0c6df5091bc1a49f8fe61b7ab1 Mon Sep 17 00:00:00 2001 From: sabrina-shanman Date: Wed, 9 Oct 2019 13:07:43 -0700 Subject: [PATCH] Fix un-transformed vertex being added to extents instead of transformed one --- libraries/hfm/src/hfm/HFMModelMath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/hfm/src/hfm/HFMModelMath.cpp b/libraries/hfm/src/hfm/HFMModelMath.cpp index 8812163fe2..e6ba042e9c 100644 --- a/libraries/hfm/src/hfm/HFMModelMath.cpp +++ b/libraries/hfm/src/hfm/HFMModelMath.cpp @@ -47,7 +47,7 @@ void calculateExtentsForShape(hfm::Shape& shape, const std::vector& 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);