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:
baldurk
2019-04-09 11:09:22 +01:00
parent f167ac0daf
commit 2ddf3b7adf
+1
View File
@@ -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);