Fixed bug where a polygon could sometimes get the wrong color when imported.

This commit is contained in:
leo 2012-04-18 01:48:58 +00:00
parent 392f399b89
commit 29c58ca1c3

View file

@ -1840,7 +1840,7 @@ static void CreateMesh(group_t* pGroup, lineinfo_t* info, LC_LDRAW_PIECE* piece)
NewEntry.Color = Line->color;
ColorGroups.AddSorted(NewEntry, ColorGroupCompare, NULL);
Group = &ColorGroups[ColorGroups.GetSize() - 1];
continue;
}
lineinfo_t* NextLine = Line->next;