Fixed duplicate colors when using the internal library.

This commit is contained in:
leo 2013-03-07 17:09:35 +00:00
parent d22e5fecde
commit e8ef2de64d
2 changed files with 3 additions and 1 deletions

View file

@ -244,7 +244,6 @@ bool lcApplication::Initialize(int argc, char* argv[], const char* LibraryInstal
return false;
}
lcLoadDefaultColors();
m_Library->CreateBuiltinPieces();
SystemDoMessageBox("LeoCAD could not find a compatible Pieces Library so only a small number of pieces will be available.\n\n"

View file

@ -350,6 +350,9 @@ bool lcLoadColorFile(lcFile& File)
Colors.RemoveAll();
for (int GroupIdx = 0; GroupIdx < LC_NUM_COLORGROUPS; GroupIdx++)
gColorGroups[GroupIdx].Colors.RemoveAll();
strcpy(gColorGroups[0].Name, "Solid Colors");
strcpy(gColorGroups[1].Name, "Translucent Colors");
strcpy(gColorGroups[2].Name, "Special Colors");