Change the default of <compiler autolimits> from "false" to "true".

PiperOrigin-RevId: 573184793
Change-Id: I24075a8d953d0a3c3ddf65c67e1e18075cd029b6
This commit is contained in:
Yuval Tassa
2023-10-13 05:04:36 -07:00
committed by Copybara-Service
parent 389e13938e
commit d88675a034
5 changed files with 48 additions and 32 deletions
+3 -3
View File
@@ -861,9 +861,9 @@ void mjXWriter::Compiler(XMLElement* root) {
if (model->boundinertia) {
WriteAttr(section, "boundinertia", 1, &model->boundinertia);
}
// always enable autolimits. limited attributes will be written appropriately
// TODO(b/245077553): Remove this when the default is true.
WriteAttrTxt(section, "autolimits", "true");
if (!model->autolimits) {
WriteAttrTxt(section, "autolimits", "false");
}
}