mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed parts list showing parts with invalid colors.
This commit is contained in:
parent
1cacf33e4b
commit
dedc429685
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ void PieceInfo::GetPartsList(int DefaultColorIndex, lcPartsList& PartsList) cons
|
|||
if (Model)
|
||||
Model->GetPartsList(DefaultColorIndex, PartsList);
|
||||
}
|
||||
else
|
||||
else if (DefaultColorIndex < gNumUserColors)
|
||||
PartsList[this][DefaultColorIndex]++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue