2
0
Эх сурвалжийг харах

Removed parameter validation from Box3.translate

Ondřej Španěl 7 жил өмнө
parent
commit
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 );