Making the public property editor able to work with object rather than only IObject3D
This commit is contained in:
parent
6163482a58
commit
dfefb936ef
10 changed files with 106 additions and 80 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue