summaryrefslogtreecommitdiff
path: root/assetFactory/factoryMesh.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-27 22:33:20 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-27 22:33:20 +0000
commit8dc04dedbba31030b83b1a23c48c6bea02eea100 (patch)
tree6c504b3d03138976a541af2f06ade4e023759186 /assetFactory/factoryMesh.cpp
parentMerge branch 'text2' (diff)
downloadilt-8dc04dedbba31030b83b1a23c48c6bea02eea100.tar.bz2
ilt-8dc04dedbba31030b83b1a23c48c6bea02eea100.tar.xz
ilt-8dc04dedbba31030b83b1a23c48c6bea02eea100.zip
3D relative scaling in asset factory
Reduces excess vertices in cylinders
Diffstat (limited to 'assetFactory/factoryMesh.cpp')
-rw-r--r--assetFactory/factoryMesh.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/assetFactory/factoryMesh.cpp b/assetFactory/factoryMesh.cpp
index 3caf5e8..bf4706e 100644
--- a/assetFactory/factoryMesh.cpp
+++ b/assetFactory/factoryMesh.cpp
@@ -1,5 +1,4 @@
#include "factoryMesh.h"
-#include "collections.h"
#include "gfx/models/vertex.h"
#include "modelFactoryMesh.h"
@@ -11,7 +10,7 @@ FactoryMesh::createMesh() const
for (const auto & use : uses) {
ModelFactoryMesh mesh;
- use->createMesh(mesh, 1);
+ use->createMesh(mesh, Scale3D {1});
if (!mesh.normalsProvidedProperty) {
mesh.update_face_normals();