mirror of
https://github.com/leozide/leocad.git
synced 2026-09-12 01:23:35 +00:00
Update the bounding box of submodels after loading.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user