You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UE-13981 Input pins of BP node are not updated after a hot reload
#codereview Robert.Manuszewski [CL 2525773 by Maciej Mroz in Main branch]
This commit is contained in:
committed by
maciej.mroz@epicgames.com
parent
64654a2fe2
commit
ee6d70dfa1
@@ -2170,14 +2170,15 @@ FText UK2Node_CallFunction::GetMenuCategory() const
|
||||
|
||||
bool UK2Node_CallFunction::HasExternalBlueprintDependencies(TArray<class UStruct*>* OptionalOutput) const
|
||||
{
|
||||
const UClass* SourceClass = FunctionReference.GetMemberParentClass(GetBlueprintClassFromNode());
|
||||
UFunction* Function = GetTargetFunction();
|
||||
const UClass* SourceClass = Function ? Function->GetOwnerClass() : nullptr;
|
||||
const UBlueprint* SourceBlueprint = GetBlueprint();
|
||||
const bool bResult = (SourceClass != NULL) && (SourceClass->ClassGeneratedBy != NULL) && (SourceClass->ClassGeneratedBy != SourceBlueprint);
|
||||
const bool bResult = (SourceClass != NULL) && (SourceClass->ClassGeneratedBy != SourceBlueprint);
|
||||
if (bResult && OptionalOutput)
|
||||
{
|
||||
OptionalOutput->Add(GetTargetFunction());
|
||||
OptionalOutput->AddUnique(Function);
|
||||
}
|
||||
return bResult || Super::HasExternalBlueprintDependencies(OptionalOutput);
|
||||
return Super::HasExternalBlueprintDependencies(OptionalOutput) || bResult;
|
||||
}
|
||||
|
||||
UEdGraph* UK2Node_CallFunction::GetFunctionGraph(const UEdGraphNode*& OutGraphNode) const
|
||||
|
||||
Reference in New Issue
Block a user