mirror of
https://github.com/leozide/leocad.git
synced 2026-09-15 11:03:55 +00:00
Unofficial project part
This commit is contained in:
@@ -93,7 +93,8 @@ lcPreview::lcPreview()
|
||||
bool lcPreview::SetCurrentPiece(const QString& PartType, int ColorCode)
|
||||
{
|
||||
lcPiecesLibrary* Library = lcGetPiecesLibrary();
|
||||
PieceInfo* Info = Library->FindPiece(PartType.toLatin1().constData(), nullptr, false, false);
|
||||
Project* CurrentProject = lcGetActiveProject();
|
||||
PieceInfo* Info = Library->FindPiece(PartType.toLatin1().constData(), CurrentProject, false, true);
|
||||
|
||||
if (Info)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user