aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh.cpp')
-rw-r--r--src/mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh.cpp b/src/mesh.cpp
index c9b5358..3cebc52 100644
--- a/src/mesh.cpp
+++ b/src/mesh.cpp
@@ -7,7 +7,7 @@ void Mesh::add_submesh(const submesh& submesh) {
submeshes.emplace_back(submesh_info {
(uint32_t)attributes[ATTRIBUTE_TYPE::POSITION].size() / position_components,
(uint32_t)indices.size(),
- submesh.index_count,
+ submesh.index_count / 3,
0
});