Merge pull request #1 from AnyOldName3/unicode-support

Add support for converting Python unicode strings to QStrings
This commit is contained in:
Al
2018-03-15 23:26:31 +01:00
committed by GitHub
+1 -1
View File
@@ -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) {