mirror of
https://github.com/overte-org/overte.git
synced 2025-07-28 22:50:33 +02:00
Fix un-transformed vertex being added to extents instead of transformed one
This commit is contained in:
parent
0b924eea78
commit
726a91cdb9
1 changed files with 1 additions and 1 deletions
|
@ -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& vertex = mesh.vertices[idx];
|
||||||
const glm::vec3 transformedVertex = glm::vec3(globalTransform * glm::vec4(vertex, 1.0f));
|
const glm::vec3 transformedVertex = glm::vec3(globalTransform * glm::vec4(vertex, 1.0f));
|
||||||
shapeExtents.addPoint(vertex);
|
shapeExtents.addPoint(transformedVertex);
|
||||||
});
|
});
|
||||||
|
|
||||||
thickenFlatExtents(shapeExtents);
|
thickenFlatExtents(shapeExtents);
|
||||||
|
|
Loading…
Reference in a new issue