Skip to content

Commit 6544d27

Browse files
committed
fixed #612
1 parent 92bc156 commit 6544d27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/UnrealEnginePython/Private/UEPyModule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2587,7 +2587,8 @@ bool ue_py_convert_pyobject(PyObject *py_obj, UProperty *prop, uint8 *buffer, in
25872587
if (casted_prop->Struct == py_u_struct->u_struct)
25882588
{
25892589
uint8 *dest = casted_prop->ContainerPtrToValuePtr<uint8>(buffer, index);
2590-
FMemory::Memcpy(dest, py_u_struct->u_struct_ptr, py_u_struct->u_struct->GetStructureSize());
2590+
py_u_struct->u_struct->InitializeStruct(dest);
2591+
py_u_struct->u_struct->CopyScriptStruct(dest, py_u_struct->u_struct_ptr);
25912592
return true;
25922593
}
25932594
}

0 commit comments

Comments
 (0)