Set the expected nozzle size when constructing the gcode viewer
This commit is contained in:
parent
09d0b9fe85
commit
08113c8575
3 changed files with 11 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue