File tree Expand file tree Collapse file tree
Source/FlowEditor/Private/Graph Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments