You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Back out changelist 2494280
That change introduced a many issues. [CL 2496652 by Maciej Mroz in Main branch]
This commit is contained in:
committed by
maciej.mroz@epicgames.com
parent
57f43e8073
commit
eb2fb74071
@@ -1587,16 +1587,14 @@ void FKismetCompilerContext::FinishCompilingFunction(FKismetFunctionContext& Con
|
||||
Function->ReturnValueOffset = Property->GetOffset_ForUFunction();
|
||||
}
|
||||
}
|
||||
|
||||
if (!Property->HasAnyPropertyFlags(CPF_ZeroConstructor) && !Function->FirstPropertyToInit)
|
||||
else
|
||||
{
|
||||
Function->FirstPropertyToInit = Property;
|
||||
Function->FunctionFlags |= FUNC_HasDefaults;
|
||||
}
|
||||
|
||||
if (!Property->HasAnyPropertyFlags(CPF_Parm) && Function->FirstPropertyToInit)
|
||||
{
|
||||
break;
|
||||
if (!Property->HasAnyPropertyFlags(CPF_ZeroConstructor))
|
||||
{
|
||||
Function->FirstPropertyToInit = Property;
|
||||
Function->FunctionFlags |= FUNC_HasDefaults;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3747,7 +3747,6 @@ void UFunction::InitializeDerivedMembers()
|
||||
ParmsSize = 0;
|
||||
ReturnValueOffset = MAX_uint16;
|
||||
|
||||
const bool bRequiresInitialization = (FunctionFlags & FUNC_HasDefaults) != 0;
|
||||
for (UProperty* Property = dynamic_cast<UProperty*>(Children); Property; Property = dynamic_cast<UProperty*>(Property->Next))
|
||||
{
|
||||
if (Property->PropertyFlags & CPF_Parm)
|
||||
@@ -3759,15 +3758,15 @@ void UFunction::InitializeDerivedMembers()
|
||||
ReturnValueOffset = Property->GetOffset_ForUFunction();
|
||||
}
|
||||
}
|
||||
|
||||
if (bRequiresInitialization
|
||||
&& !Property->HasAnyPropertyFlags(CPF_ZeroConstructor)
|
||||
&& !FirstPropertyToInit)
|
||||
else if ((FunctionFlags & FUNC_HasDefaults) != 0)
|
||||
{
|
||||
FirstPropertyToInit = Property;
|
||||
if (!Property->HasAnyPropertyFlags(CPF_ZeroConstructor))
|
||||
{
|
||||
FirstPropertyToInit = Property;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!Property->HasAnyPropertyFlags(CPF_Parm) && (FirstPropertyToInit || !bRequiresInitialization))
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user