未验证 提交 1adceb29 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #16021 from WestLangley/dev-cyclic_dependency

Box3: Avoid cyclic dependency on Sphere
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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册