Make logs more consistent in format and content

This commit is contained in:
LostDragonist
2019-01-30 20:53:48 -06:00
parent 41a4f273d6
commit 956d481ca4
+1 -1
View File
@@ -73,7 +73,7 @@ struct QString_to_python_str
{
static PyObject *convert(const QString &str) {
// It's safer to explicitly convert to unicode as if we don't, this can return either str or unicode without it being easy to know which to expect
bpy::object pyStr = bpy::object(str.toUtf8().constData());
bpy::object pyStr = bpy::object(qUtf8Printable(str));
if (SIPBytes_Check(pyStr.ptr()))
pyStr = pyStr.attr("decode")("utf-8");
return bpy::incref(pyStr.ptr());