mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Split CVertexBuffer from CMeshBuffer
This commit is contained in:
parent
538b8b9b34
commit
5d6e15bc49
10 changed files with 246 additions and 78 deletions
|
@ -228,8 +228,8 @@ IAnimatedMesh *COBJMeshFileLoader::createMesh(io::IReadFile *file)
|
|||
if (n != currMtl->VertMap.end()) {
|
||||
vertLocation = n->second;
|
||||
} else {
|
||||
currMtl->Meshbuffer->Vertices.push_back(v);
|
||||
vertLocation = currMtl->Meshbuffer->Vertices.size() - 1;
|
||||
currMtl->Meshbuffer->VertexBuffer().push_back(v);
|
||||
vertLocation = currMtl->Meshbuffer->VertexBuffer().size() - 1;
|
||||
currMtl->VertMap.emplace(v, vertLocation);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue