Skip to content

Commit

Permalink
Update to explicitly check for undefined box value, add PR ID for dis…
Browse files Browse the repository at this point in the history
…cussion reference.
  • Loading branch information
chazcb committed Jan 11, 2017
1 parent 2cde08b commit 9c88b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/Sphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9c88b59

Please sign in to comment.