mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Remove current project call from Preview::SetCurrentPiece
This commit is contained in:
parent
90d4feffe9
commit
2abaa5d297
1 changed files with 1 additions and 2 deletions
|
@ -93,8 +93,7 @@ lcPreview::lcPreview()
|
|||
bool lcPreview::SetCurrentPiece(const QString& PartType, int ColorCode)
|
||||
{
|
||||
lcPiecesLibrary* Library = lcGetPiecesLibrary();
|
||||
Project* CurrentProject = lcGetActiveProject();
|
||||
PieceInfo* Info = Library->FindPiece(PartType.toLatin1().constData(), CurrentProject, false, true);
|
||||
PieceInfo* Info = Library->FindPiece(PartType.toLatin1().constData(), nullptr, false, false);
|
||||
|
||||
if (Info)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue