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

@ -74,7 +74,9 @@ namespace MatterHackers.GCodeVisualizer
position = position + new Vector3(offset);
}
RGBA_Bytes color = renderInfo.GetMaterialColor(extruderIndex + 1);
// retract and unretract are the extruder color
RGBA_Bytes color = renderInfo.GetMaterialColor(extruderIndex);
// except for extruder 0 where they are the red and blue we are familiar with
if (extruderIndex == 0)
{
if (extrusionAmount > 0)