From faa38ffcd836e9f26515d9f76cb0b5bae013a495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Monta=C3=B1=C3=A9s=20Garc=C3=ADa?= Date: Fri, 2 Jun 2017 14:09:11 +0200 Subject: [PATCH] Inside _internalRender mForceFOV is not take into account. --- Engine/source/gui/3d/guiTSControl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Engine/source/gui/3d/guiTSControl.cpp b/Engine/source/gui/3d/guiTSControl.cpp index 7183e0877..1ae6940b2 100644 --- a/Engine/source/gui/3d/guiTSControl.cpp +++ b/Engine/source/gui/3d/guiTSControl.cpp @@ -362,9 +362,6 @@ void GuiTSCtrl::_internalRender(RectI guiViewport, RectI renderViewport, Frustum GFXTarget *origTarget = GFX->getActiveRenderTarget(); S32 origStereoTarget = GFX->getCurrentStereoTarget(); - if (mForceFOV != 0) - mLastCameraQuery.fov = mDegToRad(mForceFOV); - if (mCameraZRot) { MatrixF rotMat(EulerF(0, 0, mDegToRad(mCameraZRot))); @@ -677,6 +674,9 @@ void GuiTSCtrl::onRender(Point2I offset, const RectI &updateRect) F32 renderHeight = F32(renderSize.y); F32 aspectRatio = renderWidth / renderHeight; + if (mForceFOV != 0) + mLastCameraQuery.fov = mDegToRad(mForceFOV); + // Use the FOV to calculate the viewport height scale // then generate the width scale from the aspect ratio. if (!mLastCameraQuery.ortho)