mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +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);
|
||||
}
|
||||
|
||||
// Remember the current step
|
||||
const lcStep CurrentStep = mCurrentStep;
|
||||
|
||||
DeleteModel();
|
||||
|
||||
QBuffer Buffer(&CheckPoint->File);
|
||||
Buffer.open(QIODevice::ReadOnly);
|
||||
LoadLDraw(Buffer, lcGetActiveProject());
|
||||
|
||||
// Reset the current step
|
||||
mCurrentStep = CurrentStep;
|
||||
CalculateStep(CurrentStep);
|
||||
|
||||
gMainWindow->UpdateTimeline(true, false);
|
||||
gMainWindow->UpdateCameraMenu();
|
||||
gMainWindow->UpdateCurrentStep();
|
||||
|
|
Loading…
Reference in a new issue