Duplicating an interface function no longer duplicates the pins on the graph

When the schema duplicates a graph, have it path up all function terminators, not just the entry.
When an interface graph is duplicated, check to make sure a user defined pin exists first before adding it.

#jira UE-79032
#jira UE-58390
#rb Marc.Audy

[CL 8126934 by Ben Hoffman in Dev-Framework branch]
This commit is contained in:
Ben Hoffman
2019-08-20 12:51:36 -04:00
parent 1d22669dc2
commit de3266d787
4 changed files with 21 additions and 11 deletions

View File

@@ -271,6 +271,13 @@ bool UK2Node::CreatePinsForFunctionEntryExit(const UFunction* Function, bool bFo
{
UProperty* Param = *PropIt;
// Don't create a new pin if one exists already!
// @see UE-79032, UE-58390
if (FindPin(Param->GetFName()))
{
continue;
}
const bool bIsFunctionInput = !Param->HasAnyPropertyFlags(CPF_OutParm) || Param->HasAnyPropertyFlags(CPF_ReferenceParm);
if (bIsFunctionInput == bForFunctionEntry)