1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Update mapblock_mesh.cpp

Let's try this again...
This commit is contained in:
Gefüllte Taubenbrust 2024-11-11 19:16:35 +01:00
parent c236c1f1f1
commit 812506c0b4

View file

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