summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Huelin <62965063+SirQuartz@users.noreply.github.com>2021-07-26 08:19:53 -0400
committerGitHub <noreply@github.com>2021-07-26 08:19:53 -0400
commit7f908cf40f386f1154f958a37ab416258b6fd206 (patch)
treea532180813f8f4174223989e039a89f88a63707b
parent04fd284a9b5f9d63922c94be061ad7d9ec2baa90 (diff)
Fix expression in `cluster_builder_rd.h`
This expression should now work as intended.
-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();
}