Made it possible to show and hide the grid in 3d gcode view.
Made the post load processing on gcode files happen in a background thread so as not to lock up the ui.
This commit is contained in:
parent
f913525daf
commit
e5a170a38b
2 changed files with 46 additions and 19 deletions
|
|
@ -447,9 +447,11 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
CheckBox showGrid = new CheckBox(LocalizedString.Get("Show Grid"), textColor: ActiveTheme.Instance.PrimaryTextColor);
|
||||
showGrid.Checked = gcodeViewWidget.RenderGrid;
|
||||
meshViewerWidget.RenderBed = showGrid.Checked;
|
||||
showGrid.CheckedStateChanged += (sender, e) =>
|
||||
{
|
||||
gcodeViewWidget.RenderGrid = showGrid.Checked;
|
||||
meshViewerWidget.RenderBed = showGrid.Checked;
|
||||
};
|
||||
layerInfoContainer.AddChild(showGrid);
|
||||
}
|
||||
|
|
@ -957,6 +959,5 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
base.OnDraw(graphics2D);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue