Remove View3DWidget from IPropertyGridModifier
- Issue MatterHackers/MCCentral#3565 Consider IObject3D couplings to MatterControl assembly
This commit is contained in:
parent
baca60021d
commit
f342b3606f
2 changed files with 7 additions and 9 deletions
|
|
@ -37,7 +37,6 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
public class PPEContext
|
||||
{
|
||||
public IObject3D item { get; set; }
|
||||
public View3DWidget view3DWidget { get; set; }
|
||||
public Dictionary<string, GuiWidget> editRows { get; private set; } = new Dictionary<string, GuiWidget>();
|
||||
|
||||
public GuiWidget GetEditRow(string propertyName)
|
||||
|
|
|
|||
|
|
@ -107,12 +107,6 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
|
||||
public GuiWidget Create(IObject3D item, View3DWidget view3DWidget, ThemeConfig theme)
|
||||
{
|
||||
var context = new PPEContext()
|
||||
{
|
||||
view3DWidget = view3DWidget,
|
||||
item = item
|
||||
};
|
||||
|
||||
var mainContainer = new FlowLayoutWidget(FlowDirection.TopToBottom)
|
||||
{
|
||||
HAnchor = HAnchor.Stretch
|
||||
|
|
@ -127,9 +121,14 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
};
|
||||
}
|
||||
|
||||
if (context.item != null)
|
||||
if (item != null)
|
||||
{
|
||||
// CreateEditor(context, view3DWidget, mainContainer, theme);
|
||||
var context = new PPEContext()
|
||||
{
|
||||
item = item
|
||||
};
|
||||
|
||||
// CreateEditor
|
||||
var undoBuffer = view3DWidget.sceneContext.Scene.UndoBuffer;
|
||||
|
||||
AddWebPageLinkIfRequired(context, mainContainer, theme);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue