Making it possible to have a z offset in multi extruder setups
This commit is contained in:
parent
7f5399fa00
commit
fa218d9ebe
16 changed files with 64 additions and 28 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue