瀏覽代碼

Updates correct null check

Petter Gåsström 4 年之前
父節點
當前提交
18424b9776
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/three/TilesRenderer.js

+ 1 - 1
src/three/TilesRenderer.js

@@ -152,7 +152,7 @@ export class TilesRenderer extends TilesRendererBase {
 		const boundingBox = cached.box;
 		const obbMat = cached.boxTransform;
 
-		if ( box ) {
+		if ( boundingBox ) {
 
 			box.copy( boundingBox );
 			matrix.copy( obbMat );