If shift hold when creating first point then create two points that way polygon mode can create line

This commit is contained in:
Jaex 2016-08-04 13:37:57 +03:00
parent 3b2d2d3045
commit a51c132828

View file

@ -45,11 +45,12 @@ public override void OnUpdate()
{ {
Point pos = InputManager.MousePosition0Based; Point pos = InputManager.MousePosition0Based;
if (points.Count == 0 || (!Manager.IsProportionalResizing && points.Last() != pos)) if (points.Count == 0 || (!Manager.IsProportionalResizing && points[points.Count - 1] != pos))
{ {
points.Add(pos); points.Add(pos);
} }
else if (Manager.IsProportionalResizing)
if (Manager.IsProportionalResizing)
{ {
if (!isPolygonMode) if (!isPolygonMode)
{ {