mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Reset view when creating a new submodel. Fixes #703.
This commit is contained in:
parent
ccd9904c4c
commit
f1f2a8bd26
1 changed files with 5 additions and 0 deletions
|
@ -257,6 +257,11 @@ lcModel* Project::CreateNewModel(bool ShowModel)
|
||||||
if (ShowModel)
|
if (ShowModel)
|
||||||
{
|
{
|
||||||
SetActiveModel(mModels.GetSize() - 1);
|
SetActiveModel(mModels.GetSize() - 1);
|
||||||
|
|
||||||
|
lcView* ActiveView = gMainWindow ? gMainWindow->GetActiveView() : nullptr;
|
||||||
|
if (ActiveView)
|
||||||
|
ActiveView->GetCamera()->SetViewpoint(lcViewpoint::Home);
|
||||||
|
|
||||||
gMainWindow->UpdateTitle();
|
gMainWindow->UpdateTitle();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue