Remove printer dependencies from non-printer contexts

This commit is contained in:
John Lewin 2018-04-05 18:46:31 -07:00
parent 5b3f3ec00b
commit 2682c73021
3 changed files with 10 additions and 10 deletions

View file

@ -58,7 +58,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
"Options".Localize(),
new GCodeOptionsPanel(sceneContext, printer, theme),
theme,
ApplicationController.Instance.GetViewOptionButtons(printer, theme))
ApplicationController.Instance.GetViewOptionButtons(sceneContext, printer, theme))
{
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit,

View file

@ -162,12 +162,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
modelViewSidePanel.AddChild(
new SectionWidget(
"Options".Localize(),
new ModelOptionsPanel(printer.Bed, meshViewerWidget, theme)
new ModelOptionsPanel(sceneContext, meshViewerWidget, theme)
{
Padding = new BorderDouble(10, 10, 10, 0)
},
theme,
ApplicationController.Instance.GetViewOptionButtons(printer, theme))
ApplicationController.Instance.GetViewOptionButtons(sceneContext, printer, theme))
{
HAnchor = HAnchor.Stretch,
VAnchor = VAnchor.Fit,