From af1de263a4b484ac70045b3a8164570310efc5aa Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Tue, 2 Jul 2013 16:58:31 -0700 Subject: [PATCH] fixed FOV preference to work with view frustum code properly --- interface/src/Application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 70f7287aab..2b377ef4ec 100755 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -432,6 +432,9 @@ void Application::paintGL() { void Application::resizeGL(int width, int height) { float aspectRatio = ((float)width/(float)height); // based on screen resize + // reset the camera FOV to our preference... + _myCamera.setFieldOfView(_horizontalFieldOfView); + // get the lens details from the current camera Camera& camera = _viewFrustumFromOffset->isChecked() ? _viewFrustumOffsetCamera : _myCamera; float nearClip = camera.getNearClip();