Переглянути джерело

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;