Reset view when creating a new submodel. Fixes #703.

This commit is contained in:
Leonardo Zide 2021-05-01 16:24:55 -07:00
parent ccd9904c4c
commit f1f2a8bd26

View file

@ -257,6 +257,11 @@ lcModel* Project::CreateNewModel(bool ShowModel)
if (ShowModel)
{
SetActiveModel(mModels.GetSize() - 1);
lcView* ActiveView = gMainWindow ? gMainWindow->GetActiveView() : nullptr;
if (ActiveView)
ActiveView->GetCamera()->SetViewpoint(lcViewpoint::Home);
gMainWindow->UpdateTitle();
}
else