|
@@ -599,8 +599,11 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
if ( this.morphTargetsRelative ) {
|
|
|
|
|
|
- this.boundingBox.expandByVector( _box.min );
|
|
|
- this.boundingBox.expandByVector( _box.max );
|
|
|
+ _vector.addVectors( this.boundingBox.min, _box.min );
|
|
|
+ this.boundingBox.expandByPoint( _vector );
|
|
|
+
|
|
|
+ _vector.addVectors( this.boundingBox.max, _box.max );
|
|
|
+ this.boundingBox.expandByPoint( _vector );
|
|
|
|
|
|
} else {
|
|
|
|
|
@@ -657,8 +660,11 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
if ( this.morphTargetsRelative ) {
|
|
|
|
|
|
- _box.expandByVector( _boxMorphTargets.min );
|
|
|
- _box.expandByVector( _boxMorphTargets.max );
|
|
|
+ _vector.addVectors( _box.min, _boxMorphTargets.min );
|
|
|
+ _box.expandByPoint( _vector );
|
|
|
+
|
|
|
+ _vector.addVectors( _box.max, _boxMorphTargets.max );
|
|
|
+ _box.expandByPoint( _vector );
|
|
|
|
|
|
} else {
|
|
|
|