Explorar el Código

Fix wrong test in the frustum (missing .length) (#22496)

Ondřej Španěl hace 4 años
padre
commit
5bfb2a9fc6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/jsm/csm/Frustum.js

+ 1 - 1
examples/jsm/csm/Frustum.js

@@ -109,7 +109,7 @@ class Frustum {
 
 			}
 
-			if ( i === breaks - 1 ) {
+			if ( i === breaks.length - 1 ) {
 
 				for ( let j = 0; j < 4; j ++ ) {