Fix return value of mj_saveXML and mj_saveXMLString, fixes #2247
PiperOrigin-RevId: 700269761 Change-Id: Ifb7e9c66c70eac7d681cfcf106712d47291cf9e2
This commit is contained in:
committed by
Copybara-Service
parent
6e129a5ab2
commit
e310c23267
@@ -94,7 +94,8 @@ Free last XML model if loaded. Called internally at each load.
|
||||
|
||||
.. mujoco-include:: mj_saveXMLString
|
||||
|
||||
Save spec to XML string, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
|
||||
Save spec to XML string, return 0 on success, -1 on failure. If the length of the output buffer is too small, returns
|
||||
the required size. XML saving requires that the spec first be compiled.
|
||||
|
||||
.. _mj_saveXML:
|
||||
|
||||
@@ -103,7 +104,7 @@ Save spec to XML string, return 1 on success, 0 otherwise. XML saving requires t
|
||||
|
||||
.. mujoco-include:: mj_saveXML
|
||||
|
||||
Save spec to XML file, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
|
||||
Save spec to XML file, return 0 on success, -1 otherwise. XML saving requires that the spec first be compiled.
|
||||
|
||||
.. _Mainsimulation:
|
||||
|
||||
|
||||
@@ -49,11 +49,12 @@ instances will be deleted; as in :ref:`mj_compile`, the compilation error can be
|
||||
|
||||
.. _mj_saveXMLString:
|
||||
|
||||
Save spec to XML string, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
|
||||
Save spec to XML string, return 0 on success, -1 on failure. If the length of the output buffer is too small, returns
|
||||
the required size. XML saving requires that the spec first be compiled.
|
||||
|
||||
.. _mj_saveXML:
|
||||
|
||||
Save spec to XML file, return 1 on success, 0 otherwise. XML saving requires that the spec first be compiled.
|
||||
Save spec to XML file, return 0 on success, -1 otherwise. XML saving requires that the spec first be compiled.
|
||||
|
||||
.. _Mainsimulation:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user