Browse Source

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.
Nicholas Huelin 4 years ago
parent
commit
a1a392045d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      servers/rendering/renderer_rd/cluster_builder_rd.h

+ 1 - 1
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();
 		}