Merge pull request #2717 from aws-lumberyard-dev/nvsickle/EditorCameraFOV

Ensure Editor FOV corrects on viewport resize
monroegm-disable-blank-issue-2
Chris Galvan 5 years ago committed by GitHub
commit eb94d5b7a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -472,6 +472,12 @@ void EditorViewportWidget::Update()
m_Camera.SetZRange(cameraState.m_nearClip, cameraState.m_farClip);
}
// Ensure the FOV matches our internally stored setting if we're using the Editor camera
if (!m_viewEntityId.IsValid() && !GetIEditor()->IsInGameMode())
{
SetFOV(GetFOV());
}
// Reset the camera update flag now that we're finished updating our viewport context
m_updateCameraPositionNextTick = false;
@ -2624,8 +2630,6 @@ void EditorViewportWidget::DestroyRenderContext()
//////////////////////////////////////////////////////////////////////////
void EditorViewportWidget::SetDefaultCamera()
{
// Ensure the FOV matches our internally stored setting
SetFOV(GetFOV());
if (IsDefaultCamera())
{
return;

Loading…
Cancel
Save