BGE Py API using python3 c/api calls. include bpy_compat.h to support py2.x
This commit is contained in:
@@ -67,7 +67,7 @@ static PyObject * getMaterialID (PyObject *self, PyObject *args)
|
||||
// get last error description
|
||||
static PyObject * getLastError (PyObject *self, PyObject *args)
|
||||
{
|
||||
return PyString_FromString(Exception::m_lastError.c_str());
|
||||
return PyUnicode_FromString(Exception::m_lastError.c_str());
|
||||
}
|
||||
|
||||
// set log file
|
||||
|
||||
Reference in New Issue
Block a user