提交 99b60da6 编写于 作者: M Mr.doob

Fixed TransformControls' OrthographicCamera handling.

上级 9fb378df
......@@ -799,7 +799,15 @@
this.position.copy( worldPosition );
this.scale.set( scale, scale, scale );
eye.copy( camPosition ).sub( worldPosition ).normalize();
if ( camera instanceof THREE.PerspectiveCamera ) {
eye.copy( camPosition ).sub( worldPosition ).normalize();
} else if ( camera instanceof THREE.OrthographicCamera ) {
eye.copy( camPosition ).normalize();
}
if ( scope.space === "local" ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册