From d9a0bcf532a44e94f11f23b910d117ec41c92ec8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 10 Mar 2023 01:41:19 +0000 Subject: Swap messy glmvec wrapper for OpenMesh Point/Normal with real glm::vec and a custom vector_traits implementation Simplify code previously messy as a result of the original hack. --- assetFactory/shape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assetFactory/shape.cpp') diff --git a/assetFactory/shape.cpp b/assetFactory/shape.cpp index ec6594e..3261354 100644 --- a/assetFactory/shape.cpp +++ b/assetFactory/shape.cpp @@ -9,7 +9,7 @@ Shape::addToMesh(ModelFactoryMesh & mesh, const std::span verti { std::vector vhs; std::transform(vertices.begin(), vertices.end(), std::back_inserter(vhs), [&mesh](const auto & p) { - return mesh.add_vertex({p.x, p.y, p.z}); + return mesh.add_vertex(p); }); return vhs; } -- cgit v1.2.3