diff options
author | Nicholas Huelin <62965063+SirQuartz@users.noreply.github.com> | 2021-07-25 11:53:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-25 11:53:04 -0400 |
commit | a1a392045dbe1af3a07345964438814d598611d0 (patch) | |
tree | 12022e448e24a062d27b517f1e939830d1efa642 /servers | |
parent | e2ebc7db58c0bd61504c592f9760aaf1389af0b9 (diff) |
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.
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/renderer_rd/cluster_builder_rd.h | 2 |
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(); } |