Преглед изворни кода

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