Просмотр исходного кода

Merge pull request #18744 from WestLangley/dev_box3

Box3: use .union() in .expandFromObject()
Mr.doob 6 лет назад
Родитель
Сommit
fcf905e465
1 измененных файлов с 1 добавлено и 2 удалено
  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 );
 
 		}
 

粤ICP备19079148号