Don't show snap areas on freehand region

This commit is contained in:
Jaex 2016-08-06 16:53:29 +03:00
parent 08d1d85df8
commit c62e374620
2 changed files with 1 additions and 2 deletions

View file

@ -174,7 +174,7 @@ protected override void Update()
protected override void Draw(Graphics g) protected override void Draw(Graphics g)
{ {
// Draw snap rectangles // Draw snap rectangles
if (ShapeManager.IsCreating && ShapeManager.IsSnapResizing) if (ShapeManager.IsCreating && ShapeManager.IsSnapResizing && ShapeManager.CurrentShapeType != ShapeType.RegionFreehand)
{ {
BaseShape shape = ShapeManager.CurrentShape; BaseShape shape = ShapeManager.CurrentShape;

View file

@ -135,7 +135,6 @@ public override void OnNodeUpdate()
if (Manager.Nodes[(int)NodePosition.TopLeft].IsDragging) if (Manager.Nodes[(int)NodePosition.TopLeft].IsDragging)
{ {
Manager.IsCreating = true; Manager.IsCreating = true;
Manager.NodesVisible = false; Manager.NodesVisible = false;
} }
} }