From a13e1d6164a61a57e359aa1f9c6145477b42eda7 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Sat, 7 Nov 2015 23:10:42 +0900 Subject: [PATCH] Update python binding to match new API. --- python/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/main.cpp b/python/main.cpp index 6ae89cc..f772793 100644 --- a/python/main.cpp +++ b/python/main.cpp @@ -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();