Update the bounding box of submodels after loading.

This commit is contained in:
leo 2015-02-23 20:25:53 +00:00
parent 03d9a6e3f5
commit 168ca86c2e

View file

@ -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;