mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Add support for converting Python unicode strings to QStrings
This commit is contained in:
@@ -108,7 +108,7 @@ struct QString_from_python_str
|
||||
}
|
||||
|
||||
static void *convertible(PyObject *objPtr) {
|
||||
return PyString_Check(objPtr) ? objPtr : nullptr;
|
||||
return PyString_Check(objPtr) || PyUnicode_Check(objPtr) ? objPtr : nullptr;
|
||||
}
|
||||
|
||||
static void construct(PyObject *objPtr, bpy::converter::rvalue_from_python_stage1_data *data) {
|
||||
|
||||
Reference in New Issue
Block a user