Explorar o código

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

Charles Covey-Brandt %!s(int64=8) %!d(string=hai) anos
pai
achega
9c88b5924f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;