浏览代码

Update to explicitly check for undefined box value, add PR ID for discussion reference.

Charles Covey-Brandt 8 年之前
父节点
当前提交
9c88b5924f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/math/Sphere.js

+ 1 - 1
src/math/Sphere.js

@@ -32,7 +32,7 @@ Sphere.prototype = {
 
 		return function setFromPoints( points, optionalCenter ) {
 
-			box = box || new Box3();
+			if ( box === undefined ) box = new Box3(); // see #10547
 
 			var center = this.center;