mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Crash fix. Fixes #648.
This commit is contained in:
parent
5065dcac74
commit
44d0e92b50
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue