mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Use correct indexes when checking mesh normals
This commit is contained in:
parent
a684a91bf5
commit
e4583cb9b7
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ bool checkMeshNormals(scene::IMesh *mesh)
|
|||
buffer->getPosition(buffer->getIndices()[i+2]));
|
||||
|
||||
for (u16 j = 0; j < 3; j++)
|
||||
if (plane.Normal.dotProduct(buffer->getNormal(buffer->getIndices()[j])) < 0)
|
||||
if (plane.Normal.dotProduct(buffer->getNormal(buffer->getIndices()[i+j])) <= 0)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue