Skip to content

Commit 214b6f1

Browse files
committed
TransformControls: Re-generated jsm.
1 parent bb42e15 commit 214b6f1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

examples/jsm/controls/TransformControls.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import {
1717
MeshBasicMaterial,
1818
Object3D,
1919
OctahedronBufferGeometry,
20-
OrthographicCamera,
21-
PerspectiveCamera,
2220
PlaneBufferGeometry,
2321
Quaternion,
2422
Raycaster,
@@ -235,15 +233,7 @@ var TransformControls = function ( camera, domElement ) {
235233
this.camera.updateMatrixWorld();
236234
this.camera.matrixWorld.decompose( cameraPosition, cameraQuaternion, cameraScale );
237235

238-
if ( this.camera instanceof PerspectiveCamera ) {
239-
240-
eye.copy( cameraPosition ).sub( worldPosition ).normalize();
241-
242-
} else if ( this.camera instanceof OrthographicCamera ) {
243-
244-
eye.copy( cameraPosition ).normalize();
245-
246-
}
236+
eye.copy( cameraPosition ).sub( worldPosition ).normalize();
247237

248238
Object3D.prototype.updateMatrixWorld.call( this );
249239

0 commit comments

Comments
 (0)