From 5f327b0c314b5aa2db9872a650ce6cfd08dff4aa Mon Sep 17 00:00:00 2001 From: Saran Tunyasuvunakool Date: Sat, 15 Jul 2023 14:57:03 -0700 Subject: [PATCH] Add missing pybind definition for `update_mesh`. PiperOrigin-RevId: 548395521 Change-Id: Id21a1ef6daa94a221062e7354db3e906611f0f36 --- python/mujoco/simulate.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/mujoco/simulate.cc b/python/mujoco/simulate.cc index b81f6071..11320657 100644 --- a/python/mujoco/simulate.cc +++ b/python/mujoco/simulate.cc @@ -160,6 +160,12 @@ PYBIND11_MODULE(_simulate, pymodule) { simulate.UpdateHField(hfieldid); }, py::call_guard()) + .def( + "update_mesh", + [](SimulateWrapper& simulate, int meshid) { + simulate.UpdateMesh(meshid); + }, + py::call_guard()) .def( "update_texture", [](SimulateWrapper& simulate, int texid) {