@@ -97,10 +97,10 @@ static void UpdateString(string& psuffix, int count, int i) {
9797const char * MJCF[nMJCF][mjXATTRNUM] = {
9898{" mujoco" , " !" , " 1" , " model" },
9999{" <" },
100- {" compiler" , " *" , " 19 " , " autolimits" , " boundmass" , " boundinertia" , " settotalmass" ,
100+ {" compiler" , " *" , " 20 " , " autolimits" , " boundmass" , " boundinertia" , " settotalmass" ,
101101 " balanceinertia" , " strippath" , " coordinate" , " angle" , " fitaabb" , " eulerseq" ,
102- " meshdir" , " texturedir" , " discardvisual" , " usethread" ,
103- " fusestatic " , " inertiafromgeom " , " inertiagrouprange " , " assetdir" , " alignfree" },
102+ " meshdir" , " texturedir" , " discardvisual" , " usethread" , " fusestatic " , " inertiafromgeom " ,
103+ " inertiagrouprange " , " saveinertial " , " assetdir" , " alignfree" },
104104 {" <" },
105105 {" lengthrange" , " ?" , " 10" , " mode" , " useexisting" , " uselimit" ,
106106 " accel" , " maxforce" , " timeconst" , " timestep" ,
@@ -1015,6 +1015,9 @@ void mjXReader::Compiler(XMLElement* section, mjSpec* spec) {
10151015 if (MapValue (section, " alignfree" , &n, bool_map, 2 )) {
10161016 spec->compiler .alignfree = (n == 1 );
10171017 }
1018+ if (MapValue (section, " saveinertial" , &n, bool_map, 2 )) {
1019+ spec->compiler .saveinertial = (n == 1 );
1020+ }
10181021
10191022 // lengthrange subelement
10201023 XMLElement* elem = FindSubElem (section, " lengthrange" );
0 commit comments