summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-26 15:39:41 +0200
committerGitHub <noreply@github.com>2021-07-26 15:39:41 +0200
commitfdb74c7512b33d27a2fda58e64f97e936c9eac7c (patch)
treea532180813f8f4174223989e039a89f88a63707b
parent04fd284a9b5f9d63922c94be061ad7d9ec2baa90 (diff)
parent7f908cf40f386f1154f958a37ab416258b6fd206 (diff)
Merge pull request #50885 from SirQuartz/patch-33
Fix `if` statement in `cluster_builder_rd.h`
-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 797a02a978..c0c03eb26a 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();
}