In Python stub generation, changed a check() to a checkf() to log the name of the UFunction that was detected as a delegate but didn't have the FUNC_Delegate flag.

#rb Jamie.Dale
#preflight 623cc56bf765c25e98e82454

#ROBOMERGE-AUTHOR: patrick.laflamme
#ROBOMERGE-SOURCE: CL 19502518 via CL 19505190 via CL 19505328
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v937-19513599)

[CL 19514626 by patrick laflamme in ue5-main branch]
This commit is contained in:
patrick laflamme
2022-03-25 12:34:51 -04:00
parent e0bf8866f5
commit 3468243bdc

View File

@@ -682,7 +682,7 @@ void FPyWrapperTypeRegistry::GenerateWrappedTypesForReferences(const FGeneratedW
for (const UFunction* DelegateSignature : InGeneratedWrappedTypeReferences.DelegateReferences)
{
check(DelegateSignature->HasAnyFunctionFlags(FUNC_Delegate));
checkf(DelegateSignature->HasAnyFunctionFlags(FUNC_Delegate), TEXT("UFunction '%s' was detected as a delegate but doesn't have the 'FUNC_Delegate' flag"), *DelegateSignature->GetPathName());
GenerateWrappedDelegateType(DelegateSignature, GeneratedWrappedTypeReferences, OutDirtyModules, ReferenceGenerationFlags);
}