mirror of
https://github.com/leozide/leocad
synced 2025-01-29 20:34:50 +01:00
Update the bounding box of submodels after loading.
This commit is contained in:
parent
03d9a6e3f5
commit
168ca86c2e
1 changed files with 6 additions and 0 deletions
|
@ -253,6 +253,12 @@ bool Project::Load(const QString& FileName)
|
|||
for (int ModelIdx = 0; ModelIdx < mModels.GetSize(); ModelIdx++)
|
||||
mModels[ModelIdx]->CreatePieceInfo(this);
|
||||
|
||||
lcArray<lcModel*> UpdatedModels;
|
||||
UpdatedModels.AllocGrow(mModels.GetSize());
|
||||
|
||||
for (int ModelIdx = 0; ModelIdx < mModels.GetSize(); ModelIdx++)
|
||||
mModels[ModelIdx]->UpdatePieceInfo(UpdatedModels);
|
||||
|
||||
mFileName = FileName;
|
||||
mModified = false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue