Browse Source

Use .union() instead

WestLangley 5 years ago
parent
commit
2a52d5246b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/math/Box3.js

+ 1 - 2
src/math/Box3.js

@@ -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 );
 
 		}