add content_type to model in the XML schema.

PiperOrigin-RevId: 670961443
Change-Id: I98cd6bb61b50029cdd4f5b31e23d268989d136da
This commit is contained in:
Alessio Quaglino
2024-09-04 07:24:48 -07:00
committed by Copybara-Service
parent 9a27fc14c2
commit 0e8c0b80eb
5 changed files with 31 additions and 7 deletions
+1 -1
View File
@@ -1547,7 +1547,7 @@ void mjCModel::SetSizes() {
for (int i=0; i<nhfield; i++) nhfielddata += hfields_[i]->nrow * hfields_[i]->ncol;
// ntexdata
for (int i=0; i<ntex; i++) ntexdata += 3 * textures_[i]->width * textures_[i]->height;
for (int i=0; i<ntex; i++) ntexdata += textures_[i]->nchannel * textures_[i]->width * textures_[i]->height;
// nwrap
for (int i=0; i<ntendon; i++) nwrap += (int)tendons_[i]->path.size();