浏览代码

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

Ondřej Španěl 3 年之前
父节点
当前提交
5bfb2a9fc6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ++ ) {
 				for ( let j = 0; j < 4; j ++ ) {