mirror of
https://github.com/leozide/leocad.git
synced 2026-09-12 09:35:24 +00:00
Correctly draw selection box outline of submodels.
This commit is contained in:
+2
-4
@@ -55,11 +55,9 @@ void Project::SetActiveModel(int ModelIndex)
|
||||
return;
|
||||
|
||||
for (int ModelIdx = 0; ModelIdx < mModels.GetSize(); ModelIdx++)
|
||||
if (ModelIdx != ModelIndex)
|
||||
mModels[ModelIdx]->CalculateStep(LC_STEP_MAX);
|
||||
mModels[ModelIdx]->SetActive(ModelIdx == ModelIndex);
|
||||
|
||||
mActiveModel = mModels[ModelIndex];
|
||||
mActiveModel->CalculateStep(mActiveModel->GetCurrentStep());
|
||||
mActiveModel->UpdateInterface();
|
||||
gMainWindow->UpdateModels();
|
||||
|
||||
@@ -242,7 +240,7 @@ bool Project::Load(const QString& FileName)
|
||||
Model->CreatePieceInfo();
|
||||
}
|
||||
|
||||
mActiveModel = mModels[0];
|
||||
SetActiveModel(0);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user