From bb42ff165739a6ff7ed683cfce342297624d81bd Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Sun, 24 Mar 2024 13:12:24 -0700 Subject: [PATCH] Fix order of enable flag strings. Before this change, using the UI to toggle the "InvDiscrete" and "Sensornoise" flags would toggle the opposite flag. PiperOrigin-RevId: 618658133 Change-Id: I35d4b9da2fdf68fed24efd518a30af60d3a806eb --- doc/changelog.rst | 5 +++++ src/engine/engine_support.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index e32cd0a5..6c8e2b5a 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -59,6 +59,11 @@ Python bindings .. |ls_colab| image:: https://colab.research.google.com/assets/colab-badge.svg :target: https://colab.research.google.com/github/google-deepmind/mujoco/blob/main/python/least_squares.ipynb +Simulate +^^^^^^^^ +13. Fixed bug in order of enable flag strings. Before this change, using the simulate UI to toggle the + :ref:`invdiscrete` or :ref:`sensornoise` + flags would actually toggle the other flag. Version 3.1.2 (February 05, 2024) ----------------------------------- diff --git a/src/engine/engine_support.c b/src/engine/engine_support.c index 1090305c..c3601931 100644 --- a/src/engine/engine_support.c +++ b/src/engine/engine_support.c @@ -66,8 +66,8 @@ const char* mjENABLESTRING[mjNENABLE] = { "Override", "Energy", "Fwdinv", - "Sensornoise", "InvDiscrete", + "Sensornoise", "MultiCCD", "Island" };