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

Method PostCopyNode

Source/FlowEditor/Private/Graph/Nodes/FlowGraphNode.cpp:178–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void 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
198void UFlowGraphNode::SubscribeToExternalChanges()
199{

Callers 1

CopySelectedNodesMethod · 0.80

Calls 2

GetFlowAssetFunction · 0.85
SetGraphNodeMethod · 0.80

Tested by

no test coverage detected