Skip to content

Commit 755e158

Browse files
committed
fixed bug in uboolprop creation
1 parent 731f7f6 commit 755e158

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/UnrealEnginePython/Private/UEPyModule.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3112,7 +3112,9 @@ UProperty *new_property_from_pyobject(UObject *owner, const char *prop_name, PyO
31123112
}
31133113
else if ((PyTypeObject *)value == &PyBool_Type)
31143114
{
3115-
prop = NewObject<UBoolProperty>(owner, UTF8_TO_TCHAR(prop_name), RF_Public);
3115+
UBoolProperty *prop_bool = NewObject<UBoolProperty>(owner, UTF8_TO_TCHAR(prop_name), RF_Public);
3116+
prop_bool->SetBoolSize(1, true);
3117+
prop = prop_bool;
31163118
}
31173119
else if ((PyTypeObject *)value == &PyLong_Type)
31183120
{

0 commit comments

Comments
 (0)