Get the extrusion colors to match material colors

This commit is contained in:
Lars Brubaker 2017-08-15 09:33:12 -07:00
parent e3eb408219
commit 9f14121268
5 changed files with 5 additions and 18 deletions

View file

@ -64,11 +64,6 @@ namespace MatterHackers.MeshVisualizer
{
public static RGBA_Bytes Color(int materialIndex)
{
if (materialIndex == 0)
{
return ActiveTheme.Instance.PrimaryAccentColor;
}
return RGBA_Floats.FromHSL(Math.Max(materialIndex, 0) / 10.0, .99, .49).GetAsRGBA_Bytes();
}
}