浏览代码

TransformControls: fix incorrect application of applyProjection()

WestLangley 11 年之前
父节点
当前提交
0cde18f232
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/js/controls/TransformControls.js

+ 3 - 3
examples/js/controls/TransformControls.js

@@ -280,7 +280,7 @@
 		this.setActivePlane = function ( axis, eye ) {
 
 			var tempMatrix = new THREE.Matrix4();
-			eye.applyProjection( tempMatrix.getInverse( tempMatrix.extractRotation( this.planes[ "XY" ].matrixWorld ) ) );
+			eye.applyMatrix4( tempMatrix.getInverse( tempMatrix.extractRotation( this.planes[ "XY" ].matrixWorld ) ) );
 
 			if ( axis == "X" ) {
 				this.activePlane = this.planes[ "XY" ];
@@ -408,7 +408,7 @@
 			tempQuaternion.setFromEuler( worldRotation );
 
 			tempMatrix.makeRotationFromQuaternion( tempQuaternion ).getInverse( tempMatrix );
-			eye.applyProjection( tempMatrix );
+			eye.applyMatrix4( tempMatrix );
 
 			this.traverse(function(child) {
 
@@ -496,7 +496,7 @@
 		this.setActivePlane = function ( axis, eye ) {
 
 			var tempMatrix = new THREE.Matrix4();
-			eye.applyProjection( tempMatrix.getInverse( tempMatrix.extractRotation( this.planes[ "XY" ].matrixWorld ) ) );
+			eye.applyMatrix4( tempMatrix.getInverse( tempMatrix.extractRotation( this.planes[ "XY" ].matrixWorld ) ) );
 
 			if ( axis == "X" ) {
 				this.activePlane = this.planes[ "XY" ];