Browse Source

TransformControls: Re-generated jsm.

Mr.doob 6 years ago
parent
commit
214b6f12d3
1 changed files with 1 additions and 11 deletions
  1. 1 11
      examples/jsm/controls/TransformControls.js

+ 1 - 11
examples/jsm/controls/TransformControls.js

@@ -17,8 +17,6 @@ import {
 	MeshBasicMaterial,
 	MeshBasicMaterial,
 	Object3D,
 	Object3D,
 	OctahedronBufferGeometry,
 	OctahedronBufferGeometry,
-	OrthographicCamera,
-	PerspectiveCamera,
 	PlaneBufferGeometry,
 	PlaneBufferGeometry,
 	Quaternion,
 	Quaternion,
 	Raycaster,
 	Raycaster,
@@ -235,15 +233,7 @@ var TransformControls = function ( camera, domElement ) {
 		this.camera.updateMatrixWorld();
 		this.camera.updateMatrixWorld();
 		this.camera.matrixWorld.decompose( cameraPosition, cameraQuaternion, cameraScale );
 		this.camera.matrixWorld.decompose( cameraPosition, cameraQuaternion, cameraScale );
 
 
-		if ( this.camera instanceof PerspectiveCamera ) {
-
-			eye.copy( cameraPosition ).sub( worldPosition ).normalize();
-
-		} else if ( this.camera instanceof OrthographicCamera ) {
-
-			eye.copy( cameraPosition ).normalize();
-
-		}
+		eye.copy( cameraPosition ).sub( worldPosition ).normalize();
 
 
 		Object3D.prototype.updateMatrixWorld.call( this );
 		Object3D.prototype.updateMatrixWorld.call( this );