Explorar o código

TransformControls: Fix eye vector computation. (#24583)

Michael Herzog %!s(int64=2) %!d(string=hai) anos
pai
achega
2e3927428f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/controls/TransformControls.js

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

@@ -207,7 +207,7 @@ class TransformControls extends Object3D {
 
 		if ( this.camera.isOrthographicCamera ) {
 
-			this.camera.getWorldDirection( this.eye );
+			this.camera.getWorldDirection( this.eye ).negate();
 
 		} else {