优化画形状

This commit is contained in:
艾竹
2023-05-05 22:46:53 +08:00
parent 940512589c
commit 4a1d25fdf0
2 changed files with 16 additions and 1 deletions

View File

@@ -60,7 +60,11 @@ namespace AIStudio.Wpf.DiagramDesigner
{
pointList.Add(this.startPoint.Value);
}
pointList.Add(endPoint.Value);
//点不需要保存的太密集了
if ((endPoint.Value - pointList.Last()).Length >= 1)
{
pointList.Add(endPoint.Value);
}
}
UpdateSelection();