Browse Source

fix inverse

When the bounding box is null, do nothing
washstar 7 years ago
parent
commit
659c73e0e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/objects/Mesh.js

+ 1 - 1
src/objects/Mesh.js

@@ -245,7 +245,7 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 			// Check boundingBox before continuing
 
-			if ( geometry.boundingBox === null ) geometry.computeBoundingBox();
+			if ( geometry.boundingBox === null ) return;
 			
 			if ( ray.intersectsBox( geometry.boundingBox ) === false ) return;