mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-20 16:26:34 +08:00
修改了复制粘贴节点后无法显示参数连接关系的问题
This commit is contained in:
@@ -38,7 +38,12 @@ namespace Serein.Workbench.Node
|
||||
/// <returns></returns>
|
||||
JunctionControlBase GetJunctionOfArgData(int index)
|
||||
{
|
||||
return ArgDataJunction[index];
|
||||
var arr = ArgDataJunction;
|
||||
if (index >= arr.Length)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return arr[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,10 +31,10 @@ namespace Serein.Workbench.Node.View
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class ParamsArgControl: Shape
|
||||
{
|
||||
|
||||
|
||||
public ParamsArgControl()
|
||||
{
|
||||
this.MouseDown += ParamsArg_OnMouseDown; // 增加或删除
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace Serein.Workbench.Node.View
|
||||
{
|
||||
if(ArgIndex > -1)
|
||||
{
|
||||
End = EndNode.GetJunctionOfArgData(ArgIndex);
|
||||
End = EndNode.GetJunctionOfArgData(ArgIndex) ?? End;
|
||||
}
|
||||
(Point startPoint, Point endPoint) = RefreshPoint(Canvas, Start, End);
|
||||
BezierLine.UpdatePoints(startPoint, endPoint);
|
||||
|
||||
Reference in New Issue
Block a user