Proportional scale for height and corner controls

This commit is contained in:
LarsBrubaker 2021-05-01 17:31:09 -07:00
parent 100ddf2bfa
commit 75dd3834ab
4 changed files with 58 additions and 71 deletions

View file

@ -40,6 +40,7 @@ using MatterHackers.PolygonMesh;
using MatterHackers.RayTracer;
using MatterHackers.RenderOpenGl;
using MatterHackers.VectorMath;
using System;
using System.Collections.Generic;
namespace MatterHackers.Plugins.EditorTools
@ -69,7 +70,7 @@ namespace MatterHackers.Plugins.EditorTools
public ScaleHeightControl(IObject3DControlContext context)
: base(context)
{
theme = AppContext.Theme;
theme = MatterControl.AppContext.Theme;
heightValueDisplayInfo = new InlineEditControl()
{
@ -116,6 +117,7 @@ namespace MatterHackers.Plugins.EditorTools
{
await selectedItem.Rebuild();
throw new NotImplementedException("Need to have the object set by the time we edit complete for undo to be right");
Invalidate();
scaleController.EditComplete();