Remove irrMap and use std::map instead

This commit is contained in:
paradust7
2022-05-09 06:00:12 +00:00
committed by sfan5
parent 51ae495c4a
commit 00a7741cd4
9 changed files with 51 additions and 1136 deletions

View File

@ -250,16 +250,16 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file)
}
int vertLocation;
core::map<video::S3DVertex, int>::Node* n = currMtl->VertMap.find(v);
if (n)
auto n = currMtl->VertMap.find(v);
if (n != currMtl->VertMap.end())
{
vertLocation = n->getValue();
vertLocation = n->second;
}
else
{
currMtl->Meshbuffer->Vertices.push_back(v);
vertLocation = currMtl->Meshbuffer->Vertices.size() -1;
currMtl->VertMap.insert(v, vertLocation);
currMtl->VertMap.emplace(v, vertLocation);
}
faceCorners.push_back(vertLocation);