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; }