Skip to content

Commit 33f43d2

Browse files
author
Roberto De Ioris
committed
fixed 4.15
1 parent 0463b69 commit 33f43d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Source/UnrealEnginePython/Private/Blueprint/UEPyEdGraphPin.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ static int py_ue_edgraphpin_set_category(ue_PyEdGraphPin *self, PyObject *value,
177177
if (value && PyUnicodeOrString_Check(value))
178178
{
179179
const char *str = UEPyUnicode_AsUTF8(value);
180+
#if ENGINE_MINOR_VERSION > 18
180181
self->pin->PinType.PinCategory = FName(UTF8_TO_TCHAR(str));
182+
#else
183+
self->pin->PinType.PinCategory = FString(UTF8_TO_TCHAR(str));
184+
#endif
181185
return 0;
182186
}
183187
PyErr_SetString(PyExc_TypeError, "value is not a string");
@@ -197,7 +201,11 @@ static int py_ue_edgraphpin_set_sub_category(ue_PyEdGraphPin *self, PyObject *va
197201
if (PyUnicodeOrString_Check(value))
198202
{
199203
const char *str = UEPyUnicode_AsUTF8(value);
204+
#if ENGINE_MINOR_VERSION > 18
200205
self->pin->PinType.PinSubCategory = FName(UTF8_TO_TCHAR(str));
206+
#else
207+
self->pin->PinType.PinSubCategory = FString(UTF8_TO_TCHAR(str));
208+
#endif
201209
return 0;
202210
}
203211
}

0 commit comments

Comments
 (0)