mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Only check for part updates if loading from a zip file.
This commit is contained in:
parent
24ab5c2cc9
commit
2bc23fe871
2 changed files with 8 additions and 2 deletions
|
@ -107,7 +107,7 @@ bool lcApplication::LoadPiecesLibrary(const char* LibPath, const char* LibraryIn
|
|||
|
||||
if (mLibrary->Load(LibraryPath, LibraryCachePath))
|
||||
{
|
||||
mLibrary->mNumOfficialPieces = mLibrary->mPieces.GetSize();
|
||||
mLibrary->SetOfficialPieces();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -468,4 +468,4 @@ void lcApplication::ShowPreferencesDialog()
|
|||
*/
|
||||
|
||||
lcGetActiveProject()->UpdateAllViews();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -121,6 +121,12 @@ public:
|
|||
void GetCategoryEntries(int CategoryIndex, bool GroupPieces, lcArray<PieceInfo*>& SinglePieces, lcArray<PieceInfo*>& GroupedPieces);
|
||||
void GetPatternedPieces(PieceInfo* Parent, lcArray<PieceInfo*>& Pieces) const;
|
||||
|
||||
void SetOfficialPieces()
|
||||
{
|
||||
if (mZipFile)
|
||||
mNumOfficialPieces = mPieces.GetSize();
|
||||
}
|
||||
|
||||
lcArray<PieceInfo*> mPieces;
|
||||
lcArray<lcLibraryPrimitive*> mPrimitives;
|
||||
int mNumOfficialPieces;
|
||||
|
|
Loading…
Reference in a new issue