Add and use new ISceneContext interface

This commit is contained in:
John Lewin 2019-02-01 16:12:12 -08:00
parent 3f02989e62
commit 83712d7e08
23 changed files with 174 additions and 47 deletions

View file

@ -38,7 +38,7 @@ namespace MatterHackers.MatterControl
{
public class PartWorkspace
{
private BedConfig _sceneContext { get; }
private ISceneContext _sceneContext { get; }
public PartWorkspace()
{
@ -67,7 +67,7 @@ namespace MatterHackers.MatterControl
}
}
public PartWorkspace(BedConfig bedConfig)
public PartWorkspace(ISceneContext bedConfig)
{
var extraContainers = new List<ILibraryContainerLink>();
@ -84,7 +84,7 @@ namespace MatterHackers.MatterControl
public string Name { get; set; }
[JsonIgnore]
public BedConfig SceneContext => _sceneContext;
public ISceneContext SceneContext => _sceneContext;
public EditContext EditContext { get; set; }