mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-10 16:51:04 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user