Add note that XML saving requires that the spec first be compiled. Fixes #1832

PiperOrigin-RevId: 671046666
Change-Id: If5885545d5316537147d293fbe854caa568558b2
This commit is contained in:
Yuval Tassa
2024-09-04 11:46:34 -07:00
committed by Copybara-Service
parent 79a5bd0915
commit b502ceef00
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -103,7 +103,7 @@ mj_saveXMLString
.. mujoco-include:: mj_saveXMLString
Save spec to XML string, return 1 on success, 0 otherwise.
Save spec to XML string, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
.. _mj_saveXML:
@@ -112,7 +112,7 @@ mj_saveXML
.. mujoco-include:: mj_saveXML
Save spec to XML file, return 1 on success, 0 otherwise.
Save spec to XML file, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
.. _Mainsimulation: