@@ -26,8 +26,7 @@ static PyObject *py_ue_edgraphpin_make_link_to(ue_PyEdGraphPin *self, PyObject *
2626 FBlueprintEditorUtils::MarkBlueprintAsStructurallyModified (bp);
2727 }
2828
29- Py_INCREF (Py_None);
30- return Py_None;
29+ Py_RETURN_NONE;
3130}
3231
3332static PyObject *py_ue_edgraphpin_connect (ue_PyEdGraphPin *self, PyObject * args)
@@ -54,8 +53,7 @@ static PyObject *py_ue_edgraphpin_connect(ue_PyEdGraphPin *self, PyObject * args
5453 FBlueprintEditorUtils::MarkBlueprintAsStructurallyModified (bp);
5554 }
5655
57- Py_INCREF (Py_None);
58- return Py_None;
56+ Py_RETURN_NONE;
5957}
6058
6159static PyObject *py_ue_edgraphpin_break_link_to (ue_PyEdGraphPin *self, PyObject * args)
@@ -79,8 +77,7 @@ static PyObject *py_ue_edgraphpin_break_link_to(ue_PyEdGraphPin *self, PyObject
7977 FBlueprintEditorUtils::MarkBlueprintAsStructurallyModified (bp);
8078 }
8179
82- Py_INCREF (Py_None);
83- return Py_None;
80+ Py_RETURN_NONE;
8481}
8582
8683static PyMethodDef ue_PyEdGraphPin_methods[] = {
@@ -175,10 +172,43 @@ static int py_ue_edgraphpin_set_default_object(ue_PyEdGraphPin *self, PyObject *
175172 return -1 ;
176173}
177174
175+ static int py_ue_edgraphpin_set_category (ue_PyEdGraphPin *self, PyObject *value, void *closure)
176+ {
177+ if (value && PyUnicodeOrString_Check (value))
178+ {
179+ const char *str = UEPyUnicode_AsUTF8 (value);
180+ self->pin ->PinType .PinCategory = FName (UTF8_TO_TCHAR (str));
181+ return 0 ;
182+ }
183+ PyErr_SetString (PyExc_TypeError, " value is not a string" );
184+ return -1 ;
185+ }
186+
187+ static int py_ue_edgraphpin_set_sub_category (ue_PyEdGraphPin *self, PyObject *value, void *closure)
188+ {
189+ if (value)
190+ {
191+ if (ue_is_pyuobject (value))
192+ {
193+ ue_PyUObject *py_obj = (ue_PyUObject *)value;
194+ self->pin ->PinType .PinSubCategoryObject = py_obj->ue_object ;
195+ return 0 ;
196+ }
197+ if (PyUnicodeOrString_Check (value))
198+ {
199+ const char *str = UEPyUnicode_AsUTF8 (value);
200+ self->pin ->PinType .PinSubCategory = FName (UTF8_TO_TCHAR (str));
201+ return 0 ;
202+ }
203+ }
204+ PyErr_SetString (PyExc_TypeError, " value is not a UObject" );
205+ return -1 ;
206+ }
207+
178208static PyGetSetDef ue_PyEdGraphPin_getseters[] = {
179209 { (char *)" name" , (getter)py_ue_edgraphpin_get_name, NULL , (char *)" " , NULL },
180- { (char *)" category" , (getter)py_ue_edgraphpin_get_category, NULL , (char *)" " , NULL },
181- { (char *)" sub_category" , (getter)py_ue_edgraphpin_get_sub_category, NULL , (char *)" " , NULL },
210+ { (char *)" category" , (getter)py_ue_edgraphpin_get_category, (setter)py_ue_edgraphpin_set_category , (char *)" " , NULL },
211+ { (char *)" sub_category" , (getter)py_ue_edgraphpin_get_sub_category, (setter)py_ue_edgraphpin_set_sub_category , (char *)" " , NULL },
182212 { (char *)" default_value" , (getter)py_ue_edgraphpin_get_default_value, (setter)py_ue_edgraphpin_set_default_value, (char *)" " , NULL },
183213 { (char *)" default_text_value" , (getter)py_ue_edgraphpin_get_default_text_value, (setter)py_ue_edgraphpin_set_default_text_value, (char *)" " , NULL },
184214 { (char *)" default_object" , (getter)py_ue_edgraphpin_get_default_object, (setter)py_ue_edgraphpin_set_default_object, (char *)" " , NULL },
0 commit comments