mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Fixed cases where a model wasn't creating its piece.
This commit is contained in:
parent
5e69e680c6
commit
7d30c9bc88
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,7 @@ Project::Project()
|
|||
{
|
||||
mModified = false;
|
||||
mActiveModel = new lcModel(tr("Model #1"));
|
||||
mActiveModel->CreatePieceInfo();
|
||||
mActiveModel->SetSaved();
|
||||
mModels.Add(mActiveModel);
|
||||
}
|
||||
|
@ -123,6 +124,7 @@ void Project::CreateNewModel()
|
|||
{
|
||||
mModified = true;
|
||||
lcModel* Model = new lcModel(Name);
|
||||
Model->CreatePieceInfo();
|
||||
Model->SetSaved();
|
||||
mModels.Add(Model);
|
||||
SetActiveModel(mModels.GetSize() - 1);
|
||||
|
@ -155,6 +157,7 @@ void Project::ShowModelListDialog()
|
|||
if (!Model)
|
||||
{
|
||||
Model = new lcModel(it->first);
|
||||
Model->CreatePieceInfo();
|
||||
Model->SetSaved();
|
||||
mModified = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue