| 176 | } |
| 177 | |
| 178 | void UFlowGraphNode::PostCopyNode() |
| 179 | { |
| 180 | // Make sure this NodeInstance is owned by the FlowAsset it's being pasted into |
| 181 | if (NodeInstance) |
| 182 | { |
| 183 | UFlowAsset* FlowAsset = GetFlowAsset(); |
| 184 | |
| 185 | if (NodeInstance->GetOuter() != FlowAsset) |
| 186 | { |
| 187 | // Ensures NodeInstance is owned by the FlowAsset |
| 188 | NodeInstance->Rename(nullptr, FlowAsset, REN_DontCreateRedirectors); |
| 189 | } |
| 190 | |
| 191 | NodeInstance->SetGraphNode(this); |
| 192 | } |
| 193 | |
| 194 | // Reset the node's owning graph prior to copying |
| 195 | ResetNodeOwner(); |
| 196 | } |
| 197 | |
| 198 | void UFlowGraphNode::SubscribeToExternalChanges() |
| 199 | { |
no test coverage detected