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

@ -191,7 +191,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
}
public static void Paste(this BedConfig sceneContext)
public static void Paste(this ISceneContext sceneContext)
{
var scene = sceneContext.Scene;
@ -222,7 +222,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
}
public static async void DuplicateItem(this BedConfig sceneContext, double xOffset, IObject3D sourceItem = null)
public static async void DuplicateItem(this ISceneContext sceneContext, double xOffset, IObject3D sourceItem = null)
{
var scene = sceneContext.Scene;
if (sourceItem == null)
@ -287,7 +287,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
}
}
public static void InsertNewItem(this BedConfig sceneContext, IObject3D newItem)
public static void InsertNewItem(this ISceneContext sceneContext, IObject3D newItem)
{
var scene = sceneContext.Scene;