Made the scale top control have consideration for Height
This commit is contained in:
parent
c45371da69
commit
52c91d17b2
11 changed files with 461 additions and 34 deletions
|
|
@ -43,7 +43,7 @@ using MatterHackers.VectorMath;
|
|||
|
||||
namespace MatterHackers.Plugins.EditorTools
|
||||
{
|
||||
public abstract class ScaleTopControl : Object3DControl
|
||||
public class ScaleMatrixTopControl : Object3DControl
|
||||
{
|
||||
private IObject3D activeSelectedItem;
|
||||
private PlaneShape hitPlane;
|
||||
|
|
@ -63,7 +63,7 @@ namespace MatterHackers.Plugins.EditorTools
|
|||
private readonly InlineEditControl zValueDisplayInfo;
|
||||
private bool hadClickOnControl;
|
||||
|
||||
public ScaleTopControl(IObject3DControlContext context)
|
||||
public ScaleMatrixTopControl(IObject3DControlContext context)
|
||||
: base(context)
|
||||
{
|
||||
theme = AppContext.Theme;
|
||||
|
|
@ -149,7 +149,7 @@ namespace MatterHackers.Plugins.EditorTools
|
|||
var selectedItem = RootSelection;
|
||||
|
||||
if (Object3DControlContext.SelectedObject3DControl != null
|
||||
&& Object3DControlContext.SelectedObject3DControl as ScaleTopControl == null)
|
||||
&& Object3DControlContext.SelectedObject3DControl as ScaleMatrixTopControl == null)
|
||||
{
|
||||
shouldDrawScaleControls = false;
|
||||
}
|
||||
|
|
@ -372,20 +372,4 @@ namespace MatterHackers.Plugins.EditorTools
|
|||
Object3DControlContext.GuiSurface.BeforeDraw -= Object3DControl_BeforeDraw;
|
||||
}
|
||||
}
|
||||
|
||||
public class ScaleMatrixTopControl : ScaleTopControl
|
||||
{
|
||||
public ScaleMatrixTopControl(IObject3DControlContext context)
|
||||
: base(context)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class ScaleHeightControl : ScaleTopControl
|
||||
{
|
||||
public ScaleHeightControl(IObject3DControlContext context)
|
||||
: base(context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue