From a1a392045dbe1af3a07345964438814d598611d0 Mon Sep 17 00:00:00 2001 From: Nicholas Huelin <62965063+SirQuartz@users.noreply.github.com> Date: Sun, 25 Jul 2021 11:53:04 -0400 Subject: Fix always true expression in `cluster_builder_rd.h` This pull request fixes an issue where an expression would always evaluate to `true` no matter what. --- servers/rendering/renderer_rd/cluster_builder_rd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/rendering') 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(); } -- cgit v1.2.3