Skip to content

Commit 5276c43

Browse files
author
Roberto De Ioris
committed
fixed pin DefaultTextValue
1 parent 5f9d966 commit 5276c43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/UnrealEnginePython/Private/Blueprint/UEPyEdGraphPin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ static int py_ue_edgraphpin_set_default_value(ue_PyEdGraphPin *self, PyObject *v
136136

137137
static PyObject *py_ue_edgraphpin_get_default_text_value(ue_PyEdGraphPin *self, void *closure)
138138
{
139-
return PyUnicode_FromString(TCHAR_TO_UTF8(*(self->pin->DefaultTextValue)));
139+
return PyUnicode_FromString(TCHAR_TO_UTF8(*(self->pin->DefaultTextValue.ToString())));
140140
}
141141

142142
static int py_ue_edgraphpin_set_default_text_value(ue_PyEdGraphPin *self, PyObject *value, void *closure)
143143
{
144144
if (value && PyUnicode_Check(value))
145145
{
146146
char *str = PyUnicode_AsUTF8(value);
147-
self->pin->DefaultTextValue = UTF8_TO_TCHAR(str);
147+
self->pin->DefaultTextValue = FText::FromString(UTF8_TO_TCHAR(str));
148148
return 0;
149149
}
150150
PyErr_SetString(PyExc_TypeError, "value is not a string");

0 commit comments

Comments
 (0)