Making controls more independent

This commit is contained in:
LarsBrubaker 2020-09-12 13:09:17 -07:00
parent 95543966d3
commit 77ec3d5909
43 changed files with 532 additions and 562 deletions

View file

@ -49,7 +49,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public class FloorDrawable : IDrawable, IDisposable
{
private ISceneContext sceneContext;
private Object3DControlLayer.EditorType editorType;
private Object3DControlsLayer.EditorType editorType;
private ThemeConfig theme;
private PrinterConfig printer;
@ -61,7 +61,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
private bool loadingTextures = false;
public FloorDrawable(Object3DControlLayer.EditorType editorType, ISceneContext sceneContext, Color buildVolumeColor, ThemeConfig theme)
public FloorDrawable(Object3DControlsLayer.EditorType editorType, ISceneContext sceneContext, Color buildVolumeColor, ThemeConfig theme)
{
this.buildVolumeColor = buildVolumeColor;
this.sceneContext = sceneContext;
@ -90,7 +90,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public void Draw(GuiWidget sender, DrawEventArgs e, Matrix4X4 itemMaxtrix, WorldView world)
{
if (editorType == Object3DControlLayer.EditorType.Printer)
if (editorType == Object3DControlsLayer.EditorType.Printer)
{
// only render if we are above the bed
if (sceneContext.RendererOptions.RenderBed)