MCPcopy Create free account
hub / github.com/MothCocoon/FlowGraph / UpgradeAllFlowNodePins

Method UpgradeAllFlowNodePins

Source/FlowEditor/Private/Graph/FlowGraph.cpp:237–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void UFlowGraph::UpgradeAllFlowNodePins()
238{
239 if (UFlowAsset* FlowAsset = GetFlowAsset())
240 {
241 for (TPair<FGuid, TObjectPtr<UFlowNode>>& Node : FlowAsset->Nodes)
242 {
243 UFlowNode* FlowNode = Node.Value;
244 if (IsValid(FlowNode))
245 {
246 FlowNode->FixupDataPinTypes();
247 FlowNode->TryUpdateAutoDataPins();
248 }
249 }
250 }
251
252 for (UEdGraphNode* Node : Nodes)
253 {
254 if (UFlowGraphNode* FlowGraphNode = Cast<UFlowGraphNode>(Node))
255 {
256 FlowGraphNode->MarkNeedsFullReconstruction();
257 FlowGraphNode->ReconstructNode();
258 }
259 }
260}
261
262void UFlowGraph::MarkVersion()
263{

Callers

nothing calls this directly

Calls 5

GetFlowAssetFunction · 0.85
IsValidFunction · 0.85
FixupDataPinTypesMethod · 0.80
TryUpdateAutoDataPinsMethod · 0.80
ReconstructNodeMethod · 0.45

Tested by

no test coverage detected