提交 95c35211 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #10547 from fictiv/fix_box_sphere_dep

Patch over circular dep between Box3 and Sphere
......@@ -28,10 +28,12 @@ Sphere.prototype = {
setFromPoints: function () {
var box = new Box3();
var box;
return function setFromPoints( points, optionalCenter ) {
if ( box === undefined ) box = new Box3(); // see #10547
var center = this.center;
if ( optionalCenter !== undefined ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册