소스 검색

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;