Browse Source

Removed parameter validation from Box3.translate

Ondřej Španěl 7 years ago
parent
commit
209e05a194
1 changed files with 0 additions and 6 deletions
  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 );