Get the extrusion colors to match material colors
This commit is contained in:
parent
e3eb408219
commit
9f14121268
5 changed files with 5 additions and 18 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue