mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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 transformedVertex = glm::vec3(globalTransform * glm::vec4(vertex, 1.0f));
|
||||
shapeExtents.addPoint(vertex);
|
||||
shapeExtents.addPoint(transformedVertex);
|
||||
});
|
||||
|
||||
thickenFlatExtents(shapeExtents);
|
||||
|
|
Loading…
Reference in a new issue