summaryrefslogtreecommitdiff
path: root/servers/rendering
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-26 08:47:33 +0200
committerGitHub <noreply@github.com>2021-07-26 08:47:33 +0200
commit7341dd5afa9ece84abe89072b51c7432d5287556 (patch)
treeb1aa6b18ed5c8f4c4a42ea6b09c8b903f1166a56 /servers/rendering
parent9a480d3b1b117927c28f0497c068efb4bc15fc32 (diff)
parenta1a392045dbe1af3a07345964438814d598611d0 (diff)
Merge pull request #50856 from SirQuartz/patch-32
Fix always true expression `radius > 0.98 || radius < 1.02` in `cluster_builder_rd.h`
Diffstat (limited to 'servers/rendering')
-rw-r--r--servers/rendering/renderer_rd/cluster_builder_rd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/cluster_builder_rd.h b/servers/rendering/renderer_rd/cluster_builder_rd.h
index ebb81abdad..797a02a978 100644
--- a/servers/rendering/renderer_rd/cluster_builder_rd.h
+++ b/servers/rendering/renderer_rd/cluster_builder_rd.h
@@ -235,7 +235,7 @@ public:
Transform3D xform = view_xform * p_transform;
float radius = xform.basis.get_uniform_scale();
- if (radius > 0.98 || radius < 1.02) {
+ if (radius > 0.98 && radius < 1.02) {
xform.basis.orthonormalize();
}