提交 214b6f12 编写于 作者: M Mr.doob

TransformControls: Re-generated jsm.

上级 bb42e158
......@@ -17,8 +17,6 @@ import {
MeshBasicMaterial,
Object3D,
OctahedronBufferGeometry,
OrthographicCamera,
PerspectiveCamera,
PlaneBufferGeometry,
Quaternion,
Raycaster,
......@@ -235,15 +233,7 @@ var TransformControls = function ( camera, domElement ) {
this.camera.updateMatrixWorld();
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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册