From 1fbbfd8079411519f9e60dd31437c178604034bc Mon Sep 17 00:00:00 2001 From: Alessio Quaglino Date: Wed, 28 May 2025 03:46:54 -0700 Subject: [PATCH] Correct `frame` property in MjsBody from method to read-only attribute. PiperOrigin-RevId: 764188923 Change-Id: I7c753f7f431b79aa320681c45b7614f68b63852c --- python/mujoco/specs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mujoco/specs.cc b/python/mujoco/specs.cc index 3ec74da8..51846d2a 100644 --- a/python/mujoco/specs.cc +++ b/python/mujoco/specs.cc @@ -750,7 +750,7 @@ PYBIND11_MODULE(_specs, m) { return frame; }, py::return_value_policy::reference_internal); - mjsBody.def( + mjsBody.def_property_readonly( "frame", [](raw::MjsBody* self) -> raw::MjsFrame* { return mjs_getFrame(self->element);