summaryrefslogtreecommitdiff
path: root/assetFactory/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'assetFactory/object.cpp')
-rw-r--r--assetFactory/object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/assetFactory/object.cpp b/assetFactory/object.cpp
index f48dcf6..f87a487 100644
--- a/assetFactory/object.cpp
+++ b/assetFactory/object.cpp
@@ -1,5 +1,6 @@
#include "object.h"
#include <algorithm>
+#include <format>
Object::Object(std::string i) : id {std::move(i)} { }
@@ -10,7 +11,7 @@ Object::createMesh(ModelFactoryMesh & mesh, Scale3D levelOfDetailFactor) const
for (const auto & use : uses) {
auto useFaces = use->createMesh(mesh, levelOfDetailFactor);
std::transform(useFaces.begin(), useFaces.end(), std::inserter(faces, faces.end()), [this](auto && face) {
- return std::make_pair(id + ":" + face.first, std::move(face.second));
+ return std::make_pair(std::format("{}:{}", id, face.first), std::move(face.second));
});
}
return faces;