瀏覽代碼

Avoid cyclic dependency

WestLangley 6 年之前
父節點
當前提交
04174a3d7a
共有 1 個文件被更改,包括 2 次插入3 次删除
  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
 
 			}