mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-01 15:50:27 +02:00
Remove irrMap and use std::map instead
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user