Move pointer assignments from CopyFromSpec() to PointToLocal().

Note that these internal pointers are inherited from the public structs and are unused internally.

PiperOrigin-RevId: 652414750
Change-Id: I5e42503bce8e9019291ec0a1f8c4278438474e9b
This commit is contained in:
Alessio Quaglino
2024-07-15 02:46:33 -07:00
committed by Copybara-Service
parent 3d28a1d8c7
commit cf61d88e41
3 changed files with 70 additions and 70 deletions
+5 -5
View File
@@ -397,6 +397,11 @@ void mjCModel::PointToLocal() {
spec.modelname = &spec_modelname_;
spec.meshdir = &spec_meshdir_;
spec.texturedir = &spec_texturedir_;
comment = &comment_;
modelfiledir = &modelfiledir_;
modelname = &modelname_;
meshdir = &meshdir_;
texturedir = &texturedir_;
}
@@ -408,11 +413,6 @@ void mjCModel::CopyFromSpec() {
modelname_ = spec_modelname_;
meshdir_ = spec_meshdir_;
texturedir_ = spec_texturedir_;
comment = &comment_;
modelfiledir = &modelfiledir_;
modelname = &modelname_;
meshdir = &meshdir_;
texturedir = &texturedir_;
}