Add missing global fields to mjmModel.

PiperOrigin-RevId: 610415124
Change-Id: I07f284804bf73cb67703597973b50b8c00ea8deb
This commit is contained in:
Alessio Quaglino
2024-02-26 08:24:10 -08:00
committed by Copybara-Service
parent 8679c9fc59
commit 1f2d673c7b
10 changed files with 42 additions and 22 deletions
+4 -2
View File
@@ -837,7 +837,8 @@ bool mjCFlexcomp::MakeMesh(mjCModel* model, char* error, int error_sz) {
}
// load resource
string filename = mjuu_makefullname(model->modelfiledir, mjm_getString(model->spec.meshdir), file);
string filename = mjuu_makefullname(mjm_getString(model->spec.modelfiledir),
mjm_getString(model->spec.meshdir), file);
mjResource* resource = nullptr;
try {
@@ -943,7 +944,8 @@ bool mjCFlexcomp::MakeGMSH(mjCModel* model, char* error, int error_sz) {
}
// open resource
string filename = mjuu_makefullname(model->modelfiledir, mjm_getString(model->spec.meshdir), file);
string filename = mjuu_makefullname(mjm_getString(model->spec.modelfiledir),
mjm_getString(model->spec.meshdir), file);
mjResource* resource = nullptr;
try {