Skip to content

Commit aa02da9

Browse files
author
Roberto De Ioris
committed
implemented UWeakObjectProperty
1 parent 593f915 commit aa02da9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/UnrealEnginePython/Private/UEPyModule.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,6 +2423,11 @@ bool ue_py_convert_pyobject(PyObject *py_obj, UProperty *prop, uint8 *buffer, in
24232423
casted_prop_soft_object->SetPropertyValue_InContainer(buffer, FSoftObjectPtr(ue_obj->ue_object), index);
24242424
return true;
24252425
}
2426+
else if (auto casted_prop_weak_object = Cast<UWeakObjectProperty>(prop))
2427+
{
2428+
casted_prop_weak_object->SetPropertyValue_InContainer(buffer, FWeakObjectPtr(ue_obj->ue_object), index);
2429+
return true;
2430+
}
24262431

24272432
return false;
24282433
}

0 commit comments

Comments
 (0)