Skip to content

Commit c31afe1

Browse files
Improve drawing for reroute nodes that go backwards when they are selected, connection is executing ot executed during PIE. (#194)
1 parent 63c4029 commit c31afe1

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

Source/FlowEditor/Private/Graph/FlowGraphConnectionDrawingPolicy.cpp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,30 +150,27 @@ void FFlowGraphConnectionDrawingPolicy::DetermineWiringStyle(UEdGraphPin* Output
150150
Params.WireColor = SelectedColor;
151151
Params.WireThickness = SelectedWireThickness;
152152
Params.bDrawBubbles = false;
153-
return;
154153
}
155-
156154
// recent paths
157-
if (RecentPaths.Contains(OutputPin) && RecentPaths[OutputPin] == InputPin)
155+
else if (RecentPaths.Contains(OutputPin) && RecentPaths[OutputPin] == InputPin)
158156
{
159157
Params.WireColor = RecentColor;
160158
Params.WireThickness = RecentWireThickness;
161159
Params.bDrawBubbles = true;
162-
return;
163160
}
164-
165161
// all paths, showing graph history
166-
if (RecordedPaths.Contains(OutputPin) && RecordedPaths[OutputPin] == InputPin)
162+
else if (RecordedPaths.Contains(OutputPin) && RecordedPaths[OutputPin] == InputPin)
167163
{
168164
Params.WireColor = RecordedColor;
169165
Params.WireThickness = RecordedWireThickness;
170166
Params.bDrawBubbles = false;
171-
return;
172167
}
173-
174168
// It's not followed, fade it and keep it thin
175-
Params.WireColor = InactiveColor;
176-
Params.WireThickness = InactiveWireThickness;
169+
else
170+
{
171+
Params.WireColor = InactiveColor;
172+
Params.WireThickness = InactiveWireThickness;
173+
}
177174
}
178175
}
179176

0 commit comments

Comments
 (0)