Object3DControls are dynamically added for a given part

This commit is contained in:
LarsBrubaker 2020-09-12 19:44:18 -07:00
parent 77ec3d5909
commit a35347df4a
17 changed files with 143 additions and 197 deletions

View file

@ -360,7 +360,7 @@ namespace MatterHackers.Plugins.EditorTools
base.CancelOperation();
}
public override void SetPosition(IObject3D selectedItem)
public override void SetPosition(IObject3D selectedItem, MeshSelectInfo selectInfo)
{
Vector3 cornerPosition = GetCornerPosition(selectedItem, quadrantIndex);
double distBetweenPixelsWorldSpace = Object3DControlContext.World.GetWorldUnitsPerScreenPixelAtPosition(cornerPosition);
@ -536,5 +536,11 @@ namespace MatterHackers.Plugins.EditorTools
}
}
}
public override void Dispose()
{
xValueDisplayInfo.Close();
yValueDisplayInfo.Close();
}
}
}