diff --git a/src/user/user_objects.cc b/src/user/user_objects.cc index a1d9329b..223d951e 100644 --- a/src/user/user_objects.cc +++ b/src/user/user_objects.cc @@ -3207,7 +3207,7 @@ mjCTexture::mjCTexture(mjCModel* _model) { // point to local PointToLocal(); - // in case this camera is not compiled + // in case this texture is not compiled CopyFromSpec(); } @@ -3910,14 +3910,12 @@ mjCMaterial::mjCMaterial(mjCModel* _model, mjCDef* _def) { *this = _def->Material(); } - // set model, def model = _model; def = (_def ? _def : (_model ? _model->Defaults(0) : 0)); - // point to local PointToLocal(); - // in case this camera is not compiled + // in case this material is not compiled CopyFromSpec(); } diff --git a/src/user/user_objects.h b/src/user/user_objects.h index cd79226a..2135421d 100644 --- a/src/user/user_objects.h +++ b/src/user/user_objects.h @@ -1067,7 +1067,7 @@ class mjCTexture : public mjCTexture_, private mjsTexture { class mjCMaterial_ : public mjCBase { protected: - int texid; // id of material + int texid; // id of material's texture std::string texture_; std::string spec_texture_; };