Clean up PathControl

This commit is contained in:
jlewin 2019-05-20 16:43:31 -07:00
parent 3bc01d219b
commit fe80feb5e1
2 changed files with 4 additions and 13 deletions

View file

@ -78,7 +78,7 @@ namespace MatterHackers.Plugins.EditorTools
{
m_visible = value;
foreach(var widget in targets)
foreach (var widget in targets)
{
widget.Visible = m_visible;
}
@ -94,10 +94,6 @@ namespace MatterHackers.Plugins.EditorTools
public void DrawGlContent(DrawGlContentEventArgs e)
{
//// Draw grid background with active BedColor
//GL.Disable(EnableCap.Texture2D);
//GL.Disable(EnableCap.Blend);
GL.Begin(BeginMode.Lines);
{
GL.Color4(theme.PrimaryAccentColor);
@ -163,8 +159,6 @@ namespace MatterHackers.Plugins.EditorTools
activePoints = vertexStorage.Vertices();
//foreach (var v in activePoints.Where(p => p.command != ShapePath.FlagsAndCommand.FlagNone && !p.IsClose))
VertexPointWidget widget = null;
for (var i = 0; i < vertexStorage.Count; i++)
@ -174,10 +168,7 @@ namespace MatterHackers.Plugins.EditorTools
if (ShapePath.is_vertex(command))
{
widget = new VertexPointWidget(interactionContext, vertexStorage, new Vector3(x, y, 0), command, i);
widget.Click += (s, e) =>
{
Console.WriteLine("Hello Worl2d!");
};
// widget.Click += (s, e) =>
targets.Add(widget);

View file

@ -115,8 +115,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
});
}
iavMappings.Add(typeof(ImageObject3D), new List<<IInteractionElement> { new MoveInZControl(this) });
iavMappings.Add(typeof(PathObject3D), new List<<IInteractionElement> { new PathControl(this) });
iavMappings.Add(typeof(ImageObject3D), new List<IInteractionElement> { new MoveInZControl(this) });
iavMappings.Add(typeof(PathObject3D), new List<IInteractionElement> { new PathControl(this) });
// Register listeners
sceneContext.Scene.SelectionChanged += this.Scene_SelectionChanged;