Remove printer dependencies from non-printer contexts
This commit is contained in:
parent
5b3f3ec00b
commit
2682c73021
3 changed files with 10 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue