mirror of
https://github.com/leozide/leocad.git
synced 2026-09-12 09:35:24 +00:00
Fixed merge.
This commit is contained in:
+8
-6
@@ -248,12 +248,6 @@ bool Project::Load(const QString& FileName)
|
||||
{
|
||||
Success = FileLoad(&file, false, false);
|
||||
|
||||
UpdateBackgroundTexture();
|
||||
CalculateStep();
|
||||
|
||||
if (!bUndo)
|
||||
ClearSelection(false);
|
||||
|
||||
if (!bMerge)
|
||||
gMainWindow->UpdateFocusObject(GetFocusObject());
|
||||
|
||||
@@ -320,6 +314,14 @@ bool Project::Save(const QString& FileName)
|
||||
return true;
|
||||
}
|
||||
|
||||
void Project::Merge(Project* Other)
|
||||
{
|
||||
for (int ModelIdx = 0; ModelIdx < Other->mModels.GetSize(); ModelIdx++)
|
||||
mModels.Add(Other->mModels[ModelIdx]);
|
||||
|
||||
mModified = true;
|
||||
}
|
||||
|
||||
/*
|
||||
void Project::LoadDefaults() // todo: Change the interface in SetProject() instead
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user