Merge pull request #1220 from BruegelN/python_fix-viewer-data

Default arg for igl.glfw.Viewer().data() => mesh_id -1
This commit is contained in:
Jérémie Dumas
2019-06-13 09:07:50 -04:00
committed by GitHub
+1 -1
View File
@@ -370,7 +370,7 @@ py::class_<igl::opengl::ViewerCore> viewercore_class(me, "ViewerCore");
// viewer.data() = data;
// })
.def("data", (igl::opengl::ViewerData & (igl::opengl::glfw::Viewer::*)(int)) &igl::opengl::glfw::Viewer::data,pybind11::return_value_policy::reference)
.def("data", (igl::opengl::ViewerData & (igl::opengl::glfw::Viewer::*)(int)) &igl::opengl::glfw::Viewer::data, pybind11::return_value_policy::reference, py::arg("mesh_id")=-1)
// .def("data", (const igl::opengl::ViewerData & (igl::opengl::glfw::Viewer::*)(int) const) &igl::opengl::glfw::Viewer::data,pybind11::return_value_policy::reference)
//.def_readwrite("core", &igl::opengl::glfw::Viewer::core)