mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed camera menu not updating when selecting a viewpoint and the active view has a camera.
This commit is contained in:
parent
dcc7b80ca3
commit
856d0e10d5
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue