Add missing global fields to mjmModel.
PiperOrigin-RevId: 610415124 Change-Id: I07f284804bf73cb67703597973b50b8c00ea8deb
This commit is contained in:
committed by
Copybara-Service
parent
8679c9fc59
commit
1f2d673c7b
@@ -811,9 +811,9 @@ void mjXReader::Parse(XMLElement* root) {
|
||||
|
||||
// get comment
|
||||
if (root->FirstChild() && root->FirstChild()->ToComment()) {
|
||||
model->comment = root->FirstChild()->Value();
|
||||
mjm_setString(model->spec.comment, root->FirstChild()->Value());
|
||||
} else {
|
||||
model->comment.clear();
|
||||
mjm_setString(model->spec.comment, "");
|
||||
}
|
||||
|
||||
//------------------- parse MuJoCo sections embedded in all XML formats
|
||||
|
||||
Reference in New Issue
Block a user