Skip to content

Commit 4b00fe8

Browse files
committed
conversation fix
1 parent 223d190 commit 4b00fe8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Source/FlowEditor/Private/Graph/FlowGraphConnectionDrawingPolicy.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ void FFlowGraphConnectionDrawingPolicy::DrawConnection(int32 LayerId, const FVec
125125
break;
126126
case EFlowConnectionDrawType::Circuit:
127127
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION < 6
128-
const FVector2f& P0 = Start;
129-
const FVector2f& P1 = End;
130-
DrawCircuitSpline(LayerId, P0, P1, Params);
128+
DrawCircuitSpline(LayerId, FVector2f(Start), FVector2f(End), Params);
131129
#else
132130
DrawCircuitSpline(LayerId, Start, End, Params);
133131
#endif
@@ -252,7 +250,11 @@ void FFlowGraphConnectionDrawingPolicy::DrawCircuitConnection(const int32& Layer
252250
{
253251
// This table maps distance along curve to alpha
254252
FInterpCurve<float> SplineReparamTable;
253+
#if ENGINE_MAJOR_VERSION == 5 && ENGINE_MINOR_VERSION < 6
254+
const float SplineLength = MakeSplineReparamTable(FVector2D(Start), FVector2D(StartDirection), FVector2D(End), FVector2D(EndDirection), SplineReparamTable);
255+
#else
255256
const float SplineLength = MakeSplineReparamTable(Start, StartDirection, End, EndDirection, SplineReparamTable);
257+
#endif
256258

257259
// Draw bubbles on the spline
258260
if (Params.bDrawBubbles)

0 commit comments

Comments
 (0)