You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.23 From CL 6837861
#rb none [CL 6838042 by Chris Gagnon in Main branch]
This commit is contained in:
@@ -1687,6 +1687,7 @@ void UPythonGeneratedClass::PostInitInstance(UObject* InObj)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void UPythonGeneratedClass::ReleasePythonResources()
|
||||
{
|
||||
PyType.Reset();
|
||||
@@ -1696,6 +1697,12 @@ void UPythonGeneratedClass::ReleasePythonResources()
|
||||
PyMetaData = FPyWrapperObjectMetaData();
|
||||
}
|
||||
|
||||
bool UPythonGeneratedClass::IsFunctionImplementedInScript(FName InFunctionName) const
|
||||
{
|
||||
UFunction* Function = FindFunctionByName(InFunctionName);
|
||||
return Function && Function->GetOuter() && Function->GetOuter()->IsA(UPythonGeneratedClass::StaticClass());
|
||||
}
|
||||
|
||||
UPythonGeneratedClass* UPythonGeneratedClass::GenerateClass(PyTypeObject* InPyType)
|
||||
{
|
||||
// Get the correct super class from the parent type in Python
|
||||
|
||||
@@ -196,6 +196,8 @@ public:
|
||||
//~ IPythonResourceOwner interface
|
||||
virtual void ReleasePythonResources() override;
|
||||
|
||||
virtual bool IsFunctionImplementedInScript(FName InFunctionName) const override;
|
||||
|
||||
/** Generate an Unreal class from the given Python type */
|
||||
static UPythonGeneratedClass* GenerateClass(PyTypeObject* InPyType);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user