From 739512a0e483c90356425e33a41bf501d7e8b42f Mon Sep 17 00:00:00 2001 From: Tom Erez Date: Sun, 16 Jun 2024 05:53:39 -0700 Subject: [PATCH] Fix comment typos. PiperOrigin-RevId: 643762423 Change-Id: I98289ed4053e635b863b029f239b14a232e505e3 --- src/user/user_objects.cc | 6 ++---- src/user/user_objects.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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_; };