瀏覽代碼

fixed #2953 unnecessary code

orangesuzuki 7 年之前
父節點
當前提交
c9e4e5f6d1
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/Cameras/babylon.targetCamera.ts

+ 0 - 2
src/Cameras/babylon.targetCamera.ts

@@ -287,8 +287,6 @@ module BABYLON {
                 // Computing target and final matrix
                 this.position.addToRef(this._transformedReferencePoint, this._currentTarget);
             } else {
-                //update the up vector!
-                BABYLON.Vector3.TransformNormalToRef(this._defaultUpVector, this._cameraRotationMatrix, this.upVector);
                 this._currentTarget.copyFrom(this._getLockedTargetPosition());
             }