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

Removed parameter validation from Box3.translate

Ondřej Španěl 8 лет назад
Родитель
Сommit
209e05a194
1 измененных файлов с 0 добавлено и 6 удалено
  1. 0 6
      src/math/Box3.js

+ 0 - 6
src/math/Box3.js

@@ -468,12 +468,6 @@ Object.assign( Box3.prototype, {
 
 	translate: function ( offset ) {
 
-		if ( ! offset.isVector3 ) {
-
-			throw new Error( 'THREE.Box3: .translate() expects a Vector3.' );
-
-		}
-
 		this.min.add( offset );
 		this.max.add( offset );
 

粤ICP备19079148号