Explorar o código

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

Ondřej Španěl %!s(int64=3) %!d(string=hai) anos
pai
achega
5bfb2a9fc6
Modificáronse 1 ficheiros con 1 adicións e 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 ++ ) {