Fix comment typos.

PiperOrigin-RevId: 643762423
Change-Id: I98289ed4053e635b863b029f239b14a232e505e3
This commit is contained in:
Tom Erez
2024-06-16 05:53:39 -07:00
committed by Copybara-Service
parent 86ef1746b0
commit 739512a0e4
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -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();
}
+1 -1
View File
@@ -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_;
};