2
0
Эх сурвалжийг харах

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

Ondřej Španěl 3 жил өмнө
parent
commit
5bfb2a9fc6

+ 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 ++ ) {