You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Lock support for conversation services
[REVIEW] [at]jonathan.bunner, [at]dj.schilens, [at]pavel.koveshnikov [CL 26194200 by marshall beachy in ue5-main branch]
This commit is contained in:
+9
-1
@@ -220,8 +220,16 @@ void FConversationCompiler::RebuildBank(UConversationDatabase* ConversationAsset
|
|||||||
UEdGraphPin* OutputPin = EdNode->GetOutputPin();
|
UEdGraphPin* OutputPin = EdNode->GetOutputPin();
|
||||||
check(OutputPin);
|
check(OutputPin);
|
||||||
|
|
||||||
ForeachConnectedOutgoingConversationNode(OutputPin, [RuntimeNodeWithLinks](UConversationGraphNode* RemoteNode) {
|
ForeachConnectedOutgoingConversationNode(OutputPin, [RuntimeNodeWithLinks](UConversationGraphNode* RemoteNode)
|
||||||
|
{
|
||||||
RuntimeNodeWithLinks->OutputConnections.Add(RemoteNode->NodeGuid);
|
RuntimeNodeWithLinks->OutputConnections.Add(RemoteNode->NodeGuid);
|
||||||
|
if (UConversationNodeWithLinks* ChildNodeWithLinks = Cast<UConversationNodeWithLinks>(RemoteNode->NodeInstance))
|
||||||
|
{
|
||||||
|
// Tell child about its parent so calls to 'GetParentNode' work as expected
|
||||||
|
// Could alternatively pass as FGuid and store similarly to 'output connections' (from RuntimeNodeWithLinks->GetNodeGuid()),
|
||||||
|
// Users would need to call UConversationRegistry::GetRuntimeNodeFromGUID when they want the parent node in that case
|
||||||
|
ChildNodeWithLinks->InitializeNode(RuntimeNodeWithLinks);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user