From 54fa900dff85381372f719772c40bd8f064c345d Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 5 Nov 2025 11:51:26 +0100 Subject: [PATCH] fix: fixme checked (uploading already) --- engine/src/renderer/wavefront.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/src/renderer/wavefront.cpp b/engine/src/renderer/wavefront.cpp index bc381c6..044d1a5 100644 --- a/engine/src/renderer/wavefront.cpp +++ b/engine/src/renderer/wavefront.cpp @@ -301,6 +301,7 @@ Object* Object::LoadFile(const std::string& filename) { x /= w; y /= w; z /= w; } obj->m_vertices.emplace_back(x, y, z); + break; } @@ -375,11 +376,10 @@ Object* Object::LoadFile(const std::string& filename) { file.close(); - // FIXME: - - // for (auto it = obj->Begin(); it != obj->End(); ++it) { - // it->Upload(); - // } + unsigned int i = 0; + for (auto it = obj->Begin(); it != obj->End(); ++it, ++i) { + std::cout << "Mesh #" << i << " primitives count: " << it->GetIndicesCount() / 3 << std::endl; + } return obj; }