"exactmeshinertia" is now only saved if its value is different than default.
PiperOrigin-RevId: 469848032 Change-Id: I9abdeccbf764f5e4267753c0e2bfdd42b3bec723
This commit is contained in:
committed by
Copybara-Service
parent
62b185bd52
commit
a90803d643
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user