Update python binding to match new API.

This commit is contained in:
Syoyo Fujita
2015-11-07 23:10:42 +09:00
parent 4f992f483d
commit a13e1d6164

View File

@@ -44,7 +44,8 @@ pyLoadObj(PyObject* self, PyObject* args)
if(!PyArg_ParseTuple(args, "s", &filename))
return NULL;
tinyobj::LoadObj(shapes, materials, filename);
std::string err;
tinyobj::LoadObj(shapes, materials, err, filename);
pyshapes = PyDict_New();
pymaterials = PyDict_New();