Skip to content

Commit

Permalink
fix crash when add HoldEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
MikiraSora committed Dec 29, 2023
1 parent ebd7534 commit eb29547
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ Vector2 PostPoint2(double tGridUnit, double xGridUnit)
list.RemoveAt(list.Count - 1);
list.Add(new LineVertex(holdEndPoint, color, VertexDash.Solider));
}
else
{
list.Add(new LineVertex(holdPoint, color, VertexDash.Solider));
list.Add(new LineVertex(holdEndPoint, color, VertexDash.Solider));
}

lineDrawing.Draw(target, list, 13);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public static class VisibleLineVerticesQuery
{
public static void QueryVisibleLineVertices(IFumenEditorDrawingContext target, ConnectableStartObject start, VertexDash invailedDash, Vector4 color, IList<LineVertex> outVertices)
{
if (start is null)
return;

var resT = start.TGrid.ResT;
var resX = start.XGrid.ResX;

Expand Down

0 comments on commit eb29547

Please sign in to comment.