1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Make shading of CAOs optional (#10033)

This commit is contained in:
Danila Shutov
2020-06-16 22:48:31 +03:00
committed by GitHub
parent 0a1181f763
commit 3a6dfda358
10 changed files with 47 additions and 7 deletions

View File

@@ -341,7 +341,7 @@ bool checkMeshNormals(scene::IMesh *mesh)
// hurting the performance and covering only really weird broken models.
f32 length = buffer->getNormal(0).getLength();
if (!std::isfinite(length) || std::fabs(length) < 1e-10f)
if (!std::isfinite(length) || length < 1e-10f)
return false;
}