Переглянути джерело

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 );