Include parts in submodels in the 'Parts in Use' category. Fixes #436.

This commit is contained in:
Leonardo Zide 2020-02-01 10:33:51 -08:00
parent 0ced302cd0
commit be2f4caf65

View file

@ -232,7 +232,7 @@ void lcPartSelectionListModel::SetCurrentModelCategory()
lcModel* ActiveModel = gMainWindow->GetActiveModel();
lcPartsList PartsList;
ActiveModel->GetPartsList(gDefaultColor, false, true, PartsList);
ActiveModel->GetPartsList(gDefaultColor, true, true, PartsList);
for (const auto& PartIt : PartsList)
mParts.emplace_back(std::pair<PieceInfo*, QPixmap>((PieceInfo*)PartIt.first, QPixmap()));