Skip to content

Commit 87b10b5

Browse files
authored
Merge pull request #17308 from elitecool/dev
TransformControls: fix bug when bind on orthographic camera
2 parents 6585f33 + d8608df commit 87b10b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/js/controls/TransformControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ THREE.TransformControls = function ( camera, domElement ) {
216216

217217
} else if ( this.camera instanceof THREE.OrthographicCamera ) {
218218

219-
eye.copy( cameraPosition ).normalize();
219+
eye.copy( cameraPosition ).sub( worldPosition ).normalize();
220220

221221
}
222222

0 commit comments

Comments
 (0)