mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
parent
cba4dfb468
commit
b520fe0b6d
1 changed files with 7 additions and 0 deletions
|
@ -1748,12 +1748,19 @@ void lcModel::LoadCheckPoint(lcModelHistoryEntry* CheckPoint)
|
||||||
LoadedInfos.push_back(Info);
|
LoadedInfos.push_back(Info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remember the current step
|
||||||
|
const lcStep CurrentStep = mCurrentStep;
|
||||||
|
|
||||||
DeleteModel();
|
DeleteModel();
|
||||||
|
|
||||||
QBuffer Buffer(&CheckPoint->File);
|
QBuffer Buffer(&CheckPoint->File);
|
||||||
Buffer.open(QIODevice::ReadOnly);
|
Buffer.open(QIODevice::ReadOnly);
|
||||||
LoadLDraw(Buffer, lcGetActiveProject());
|
LoadLDraw(Buffer, lcGetActiveProject());
|
||||||
|
|
||||||
|
// Reset the current step
|
||||||
|
mCurrentStep = CurrentStep;
|
||||||
|
CalculateStep(CurrentStep);
|
||||||
|
|
||||||
gMainWindow->UpdateTimeline(true, false);
|
gMainWindow->UpdateTimeline(true, false);
|
||||||
gMainWindow->UpdateCameraMenu();
|
gMainWindow->UpdateCameraMenu();
|
||||||
gMainWindow->UpdateCurrentStep();
|
gMainWindow->UpdateCurrentStep();
|
||||||
|
|
Loading…
Add table
Reference in a new issue