From 2ddf3b7adffb1fc27191ff8b09b1ac488609f723 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 9 Apr 2019 11:08:49 +0100 Subject: [PATCH] Auto-fit the WASD camera to the bounding box after switching * We do the same for the arcball, there's no reason the flycam should default to the origin for vertex inputs --- qrenderdoc/Windows/BufferViewer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qrenderdoc/Windows/BufferViewer.cpp b/qrenderdoc/Windows/BufferViewer.cpp index 483054c97..a39c74f6e 100644 --- a/qrenderdoc/Windows/BufferViewer.cpp +++ b/qrenderdoc/Windows/BufferViewer.cpp @@ -3628,6 +3628,7 @@ void BufferViewer::on_controlType_currentIndexChanged(int index) m_Flycam->Reset(FloatVector(0.0f, 0.0f, 0.0f, 0.0f)); else m_Flycam->Reset(FloatVector(0.0f, 0.0f, -10.0f, 0.0f)); + on_autofitCamera_clicked(); } INVOKE_MEMFN(RT_UpdateAndDisplay);