mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Fixed bug where a polygon could sometimes get the wrong color when imported.
This commit is contained in:
parent
392f399b89
commit
29c58ca1c3
1 changed files with 1 additions and 1 deletions
|
@ -1840,7 +1840,7 @@ static void CreateMesh(group_t* pGroup, lineinfo_t* info, LC_LDRAW_PIECE* piece)
|
||||||
NewEntry.Color = Line->color;
|
NewEntry.Color = Line->color;
|
||||||
|
|
||||||
ColorGroups.AddSorted(NewEntry, ColorGroupCompare, NULL);
|
ColorGroups.AddSorted(NewEntry, ColorGroupCompare, NULL);
|
||||||
Group = &ColorGroups[ColorGroups.GetSize() - 1];
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
lineinfo_t* NextLine = Line->next;
|
lineinfo_t* NextLine = Line->next;
|
||||||
|
|
Loading…
Add table
Reference in a new issue