Skip to content

Commit

Permalink
Merge pull request #18744 from WestLangley/dev_box3
Browse files Browse the repository at this point in the history
Box3: use .union() in .expandFromObject()
  • Loading branch information
mrdoob authored Feb 26, 2020
2 parents e9eda9b + 2a52d52 commit fcf905e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/math/Box3.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ Object.assign( Box3.prototype, {
_box.copy( geometry.boundingBox );
_box.applyMatrix4( object.matrixWorld );

this.expandByPoint( _box.min );
this.expandByPoint( _box.max );
this.union( _box );

}

Expand Down

0 comments on commit fcf905e

Please sign in to comment.