BGE Py API using python3 c/api calls. include bpy_compat.h to support py2.x

This commit is contained in:
2009-06-29 02:25:54 +00:00
parent bb1f24ac44
commit c50bbe5ae7
66 changed files with 317 additions and 325 deletions

View File

@@ -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