Making it possible to have a z offset in multi extruder setups

This commit is contained in:
Lars Brubaker 2018-12-03 14:58:31 -08:00
parent 7f5399fa00
commit fa218d9ebe
16 changed files with 64 additions and 28 deletions

View file

@ -70,8 +70,8 @@ namespace MatterHackers.GCodeVisualizer
if (renderInfo.CurrentRenderType.HasFlag(RenderType.HideExtruderOffsets))
{
Vector2 offset = renderInfo.GetExtruderOffset(extruderIndex);
position = position + new Vector3(offset);
Vector3 offset = renderInfo.GetExtruderOffset(extruderIndex);
position = position + offset;
}
// retract and unretract are the extruder color
@ -110,8 +110,8 @@ namespace MatterHackers.GCodeVisualizer
if (renderInfo.CurrentRenderType.HasFlag(RenderType.HideExtruderOffsets))
{
Vector2 offset = renderInfo.GetExtruderOffset(extruderIndex);
position = position + offset;
Vector3 offset = renderInfo.GetExtruderOffset(extruderIndex);
position = position + new Vector2(offset);
}
renderInfo.Transform.transform(ref position);