| 284 | } |
| 285 | |
| 286 | void UFlowGraph::UpdateAsset(const int32 UpdateFlags) |
| 287 | { |
| 288 | if (IsLocked()) |
| 289 | { |
| 290 | return; |
| 291 | } |
| 292 | |
| 293 | /* UpdateAsset is called to do any reconciliation from the editor-version of the |
| 294 | * graph to the runtime version of the graph data. |
| 295 | * In our case, it will copy the AddOns from their editor-side UFlowGraphNode containers to |
| 296 | * their runtime UFlowNode and/or UFlowNodeAddOn ::AddOn array entry. */ |
| 297 | for (UEdGraphNode* Node : Nodes) |
| 298 | { |
| 299 | if (UFlowGraphNode* FlowGraphNode = Cast<UFlowGraphNode>(Node)) |
| 300 | { |
| 301 | FlowGraphNode->RebuildRuntimeAddOnsFromEditorSubNodes(); |
| 302 | } |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | bool UFlowGraph::UpdateUnknownNodeClasses() |
| 307 | { |
no test coverage detected