Browse Source

Merge pull request #16021 from WestLangley/dev-cyclic_dependency

Box3: Avoid cyclic dependency on Sphere
Mr.doob 6 years ago
parent
commit
1adceb2999
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/math/Box3.js

+ 2 - 3
src/math/Box3.js

@@ -1,5 +1,4 @@
 import { Vector3 } from './Vector3.js';
-import { Sphere } from './Sphere.js';
 
 /**
  * @author bhouston / http://clara.io
@@ -523,8 +522,8 @@ Object.assign( Box3.prototype, {
 
 			if ( target === undefined ) {
 
-				console.warn( 'THREE.Box3: .getBoundingSphere() target is now required' );
-				target = new Sphere();
+				console.error( 'THREE.Box3: .getBoundingSphere() target is now required' );
+				//target = new Sphere(); // removed to avoid cyclic dependency
 
 			}