Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo committed Nov 17, 2022
1 parent 21c0d12 commit f9e5cd8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Source/GlobalEventSystem/Private/GESHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,14 +563,9 @@ void FGESHandler::EmitEvent(const FGESEmitContext& EmitData, UStruct* Struct, vo

FField* OldProperty = Class->ChildProperties;


//GetTransientPackage(), EmitData.WorldContext
//UScriptStruct* NewStruct = NewObject<UScriptStruct>(GetTransientPackage(), *Struct->GetName(), RF_NoFlags);

FStructProperty* StructProperty = new FStructProperty(FFieldVariant(Class), TEXT("StructProperty"), RF_NoFlags);
StructProperty->Struct = (UScriptStruct*)Struct;
StructProperty->ElementSize = Struct->GetStructureSize();
//NewStruct->AddCppProperty(StructProperty);

//undo what we just did so it won't be traversed because of init
Class->ChildProperties = OldProperty;
Expand All @@ -581,7 +576,6 @@ void FGESHandler::EmitEvent(const FGESEmitContext& EmitData, UStruct* Struct, vo
Buffer.SetNum(Size);

//StructProperty->CopyCompleteValue(Buffer.GetData(), StructPtr);

FPlatformMemory::Memcpy(Buffer.GetData(), StructPtr, Size);

PropData.Property = StructProperty;
Expand Down

0 comments on commit f9e5cd8

Please sign in to comment.