Force proportional resizing in magnify tool

This commit is contained in:
Jaex 2019-05-03 11:01:09 +03:00
parent 7d71c6bd45
commit d27a7de529
2 changed files with 8 additions and 1 deletions

View file

@ -97,6 +97,8 @@ private set
public virtual bool IsSelectable => Manager.CurrentTool == ShapeType || Manager.CurrentTool == ShapeType.ToolSelect;
public bool ForceProportionalResizing { get; protected set; }
internal ShapeManager Manager { get; set; }
protected InputManager InputManager => Manager.InputManager;
@ -246,7 +248,7 @@ public virtual void OnUpdate()
StartPosition = StartPosition.Add(InputManager.MouseVelocity);
}
if (Manager.IsProportionalResizing)
if (Manager.IsProportionalResizing || ForceProportionalResizing)
{
float degree, startDegree;

View file

@ -35,6 +35,11 @@ public class MagnifyDrawingShape : EllipseDrawingShape
public int MagnifyStrength { get; set; } = 200;
public MagnifyDrawingShape()
{
ForceProportionalResizing = true;
}
public override void OnConfigLoad()
{
base.OnConfigLoad();