1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Update mapblock_mesh.cpp

fix failed checks (hopefully for crying out loud)
This commit is contained in:
Gefüllte Taubenbrust 2024-11-11 18:00:25 +01:00
parent d8a6155029
commit c236c1f1f1

View file

@ -760,7 +760,7 @@ MapBlockMesh::MapBlockMesh(Client *client, MeshMakeData *data, v3s16 camera_offs
std::vector<video::S3DVertexTangents> vertices;
vertices.reserve(p.vertices.size());
for (video::S3DVertex &v : p.vertices)
vertices.push_back(video::S3DVertexTangents(v.Pos, v.Normal, v.Color, v.TCoords));
vertices.emplace_back(video::S3DVertexTangents(v.Pos, v.Normal, v.Color, v.TCoords));
buf->append(&vertices[0], vertices.size(),
&p.indices[0], p.indices.size());
buf->recalculateBoundingBox();