Browse Source

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

Charles Covey-Brandt 8 years ago
parent
commit
9c88b5924f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/math/Sphere.js

+ 1 - 1
src/math/Sphere.js

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