mirror of
https://github.com/leozide/leocad
synced 2025-02-06 08:46:06 +01:00
Fixed duplicate colors when using the internal library.
This commit is contained in:
parent
d22e5fecde
commit
e8ef2de64d
2 changed files with 3 additions and 1 deletions
|
@ -244,7 +244,6 @@ bool lcApplication::Initialize(int argc, char* argv[], const char* LibraryInstal
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
lcLoadDefaultColors();
|
|
||||||
m_Library->CreateBuiltinPieces();
|
m_Library->CreateBuiltinPieces();
|
||||||
|
|
||||||
SystemDoMessageBox("LeoCAD could not find a compatible Pieces Library so only a small number of pieces will be available.\n\n"
|
SystemDoMessageBox("LeoCAD could not find a compatible Pieces Library so only a small number of pieces will be available.\n\n"
|
||||||
|
|
|
@ -350,6 +350,9 @@ bool lcLoadColorFile(lcFile& File)
|
||||||
|
|
||||||
Colors.RemoveAll();
|
Colors.RemoveAll();
|
||||||
|
|
||||||
|
for (int GroupIdx = 0; GroupIdx < LC_NUM_COLORGROUPS; GroupIdx++)
|
||||||
|
gColorGroups[GroupIdx].Colors.RemoveAll();
|
||||||
|
|
||||||
strcpy(gColorGroups[0].Name, "Solid Colors");
|
strcpy(gColorGroups[0].Name, "Solid Colors");
|
||||||
strcpy(gColorGroups[1].Name, "Translucent Colors");
|
strcpy(gColorGroups[1].Name, "Translucent Colors");
|
||||||
strcpy(gColorGroups[2].Name, "Special Colors");
|
strcpy(gColorGroups[2].Name, "Special Colors");
|
||||||
|
|
Loading…
Add table
Reference in a new issue