summaryrefslogtreecommitdiff
path: root/src/client/mesh.cpp
diff options
context:
space:
mode:
authorDanila Shutov <dcbrwn2@gmail.com>2020-06-16 22:48:31 +0300
committerGitHub <noreply@github.com>2020-06-16 20:48:31 +0100
commit3a6dfda358112e2fb5d6f887a1a1e936eacddadd (patch)
tree340e1e0442ef8ba346b522580b2b6bee66246b30 /src/client/mesh.cpp
parent0a1181f7637adab6fe1ba5d3c09038912a06b37f (diff)
downloadminetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.tar.gz
minetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.tar.bz2
minetest-3a6dfda358112e2fb5d6f887a1a1e936eacddadd.zip
Make shading of CAOs optional (#10033)
Diffstat (limited to 'src/client/mesh.cpp')
-rw-r--r--src/client/mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/mesh.cpp b/src/client/mesh.cpp
index 68832849e..e1ec22068 100644
--- a/src/client/mesh.cpp
+++ b/src/client/mesh.cpp
@@ -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;
}