Browse Source

Updates correct null check

Petter Gåsström 4 năm trước cách đây
mục cha
commit
18424b9776
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 );