Fixed camera menu not updating when selecting a viewpoint and the active view has a camera.

This commit is contained in:
Leonardo Zide 2018-02-17 17:32:07 -08:00
parent dcc7b80ca3
commit 856d0e10d5

View file

@ -276,6 +276,8 @@ void View::SetViewpoint(lcViewpoint Viewpoint)
mCamera->SetViewpoint(Viewpoint);
ZoomExtents();
Redraw();
gMainWindow->UpdateCurrentCamera(-1);
}
void View::SetCameraAngles(float Latitude, float Longitude)
@ -294,6 +296,8 @@ void View::SetDefaultCamera()
mCamera = new lcCamera(true);
mCamera->SetViewpoint(LC_VIEWPOINT_HOME);
gMainWindow->UpdateCurrentCamera(-1);
}
lcMatrix44 View::GetProjectionMatrix() const