Set the expected nozzle size when constructing the gcode viewer

This commit is contained in:
Lars Brubaker 2016-07-29 15:10:13 -07:00
parent 09d0b9fe85
commit 08113c8575
3 changed files with 11 additions and 2 deletions

View file

@ -285,6 +285,15 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
gCodeRenderer = new GCodeRenderer(LoadedGCode);
if (ActiveSliceSettings.Instance.PrinterSelected)
{
GCodeRenderer.ExtruderWidth = ActiveSliceSettings.Instance.GetValue<double>(SettingsKey.nozzle_diameter);
}
else
{
GCodeRenderer.ExtruderWidth = .4;
}
await Task.Run(() => DoPostLoadInitialization());
postLoadInitialization_RunWorkerCompleted();