From 29c58ca1c33ce021e8cb6764ba99b30e4e5ab2e6 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 18 Apr 2012 01:48:58 +0000 Subject: [PATCH] Fixed bug where a polygon could sometimes get the wrong color when imported. --- common/library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/library.cpp b/common/library.cpp index 4127e7ee..9d6efdb6 100755 --- a/common/library.cpp +++ b/common/library.cpp @@ -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;