fix: fixme checked (uploading already)

This commit is contained in:
2025-11-05 11:51:26 +01:00
parent b6b40837a4
commit 54fa900dff

View File

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