Added scale control to ring and torus

This commit is contained in:
Lars Brubaker 2021-05-03 13:56:42 -07:00
parent 73a9c4ed9e
commit 04f92eb887
10 changed files with 202 additions and 60 deletions

View file

@ -67,12 +67,12 @@ namespace MatterHackers.Plugins.EditorTools
private ScaleController scaleController;
public ScaleHeightControl(IObject3DControlContext context, Func<double> getDiameter = null, Action<double> setDiameter = null)
public ScaleHeightControl(IObject3DControlContext context, List<Func<double>> getDiameters = null, List<Action<double>> setDiameters = null)
: base(context)
{
theme = MatterControl.AppContext.Theme;
scaleController = new ScaleController(getDiameter, setDiameter);
scaleController = new ScaleController(getDiameters, setDiameters);
heightValueDisplayInfo = new InlineEditControl()
{