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:
committed by
Copybara-Service
parent
3d28a1d8c7
commit
cf61d88e41
@@ -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_;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user