Cleaned up the GetRenderType call to eventually improve the 3d gcode layer creation speed
Made setting the extruder temp to 0 suppress outputting M109
This commit is contained in:
parent
5454316591
commit
9bbd272467
2 changed files with 20 additions and 6 deletions
|
|
@ -260,7 +260,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
AddHandlers();
|
||||
}
|
||||
|
||||
void TrackballTumbleWidget_DrawGlContent(object sender, EventArgs e)
|
||||
RenderType GetRenderType()
|
||||
{
|
||||
RenderType renderType = RenderType.Extrusions;
|
||||
if (gcodeViewWidget.RenderMoves)
|
||||
|
|
@ -280,8 +280,13 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
renderType |= RenderType.SimulateExtrusion;
|
||||
}
|
||||
|
||||
return renderType;
|
||||
}
|
||||
|
||||
void TrackballTumbleWidget_DrawGlContent(object sender, EventArgs e)
|
||||
{
|
||||
GCodeRenderer.ExtrusionColor = ActiveTheme.Instance.PrimaryAccentColor;
|
||||
gcodeViewWidget.gCodeRenderer.Render3D(0, Math.Min(gcodeViewWidget.ActiveLayerIndex + 1, gcodeViewWidget.LoadedGCode.NumChangesInZ), gcodeViewWidget.TotalTransform, 1, renderType,
|
||||
gcodeViewWidget.gCodeRenderer.Render3D(0, Math.Min(gcodeViewWidget.ActiveLayerIndex + 1, gcodeViewWidget.LoadedGCode.NumChangesInZ), gcodeViewWidget.TotalTransform, 1, GetRenderType(),
|
||||
gcodeViewWidget.FeatureToStartOnRatio0To1, gcodeViewWidget.FeatureToEndOnRatio0To1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue