Making the public property editor able to work with object rather than only IObject3D

This commit is contained in:
Lars Brubaker 2023-03-23 14:04:47 -07:00
parent 6163482a58
commit dfefb936ef
10 changed files with 106 additions and 80 deletions

View file

@ -237,13 +237,13 @@ namespace MatterHackers.MatterControl.DesignTools
}
}
public class SheetEditor : IObject3DEditor
public class SheetEditor : IObjectEditor
{
string IObject3DEditor.Name => "Sheet Editor";
string IObjectEditor.Name => "Sheet Editor";
IEnumerable<Type> IObject3DEditor.SupportedTypes() => new[] { typeof(SheetObject3D) };
IEnumerable<Type> IObjectEditor.SupportedTypes() => new[] { typeof(SheetObject3D) };
public GuiWidget Create(IObject3D item, UndoBuffer undoBuffer, ThemeConfig theme)
public GuiWidget Create(object item, UndoBuffer undoBuffer, ThemeConfig theme)
{
if (item is SheetObject3D sheetObject)
{