Skip to content

Commit 8e67963

Browse files
authored
Fix parameter order in bindings (fixes #13)
1 parent 752d970 commit 8e67963

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/atlas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void Atlas::bind(py::module& m)
261261
{
262262
py::class_<Atlas>(m, "Atlas")
263263
.def(py::init<>())
264-
.def("add_mesh", &Atlas::addMesh, py::arg("positions"), py::arg("indices"), py::arg("uvs") = std::nullopt, py::arg("normals") = std::nullopt)
264+
.def("add_mesh", &Atlas::addMesh, py::arg("positions"), py::arg("indices"), py::arg("normals") = std::nullopt, py::arg("uvs") = std::nullopt)
265265
.def("add_uv_mesh", &Atlas::addUvMesh, py::arg("uvs"), py::arg("indices"), py::arg("face_materials") = std::nullopt)
266266
.def("generate", &Atlas::generate, py::arg("chart_options") = xatlas::ChartOptions(), py::arg("pack_options") = xatlas::PackOptions(), py::arg("verbose") = false)
267267
.def("get_mesh", &Atlas::getMesh, py::arg("mesh_index"))

0 commit comments

Comments
 (0)