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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue