"exactmeshinertia" is now only saved if its value is different than default.

PiperOrigin-RevId: 469848032
Change-Id: I9abdeccbf764f5e4267753c0e2bfdd42b3bec723
This commit is contained in:
Kevin Zakka
2022-08-24 16:08:12 -07:00
committed by Copybara-Service
parent 62b185bd52
commit a90803d643
+3 -1
View File
@@ -690,7 +690,9 @@ void mjXWriter::Compiler(XMLElement* root) {
if (!model->usethread) {
WriteAttrTxt(section, "usethread", "false");
}
WriteAttrTxt(section, "exactmeshinertia", FindValue(bool_map, 2, model->exactmeshinertia));
if (model->exactmeshinertia) {
WriteAttrTxt(section, "exactmeshinertia", "true");
}
}