Crash fix. Fixes #648.

This commit is contained in:
Leonardo Zide 2021-03-10 16:10:24 -08:00
parent 5065dcac74
commit 44d0e92b50

View file

@ -238,6 +238,8 @@ void lcPartSelectionListModel::SetCurrentModelCategory()
lcModel* ActiveModel = gMainWindow->GetActiveModel();
lcPartsList PartsList;
if (ActiveModel)
ActiveModel->GetPartsList(gDefaultColor, true, true, PartsList);
for (const auto& PartIt : PartsList)