Reduce size of mjsTexture.gridlayout (was 13, should be 12)
PiperOrigin-RevId: 833764817 Change-Id: I2655a729d38a8871be2024492ce2a971fc8a0372
This commit is contained in:
committed by
Copybara-Service
parent
971e73ab04
commit
62872fecd1
@@ -2265,7 +2265,7 @@ typedef struct mjsTexture_ { // texture specification
|
||||
mjString* content_type; // content type of file
|
||||
mjString* file; // png file to load; use for all sides of cube
|
||||
int gridsize[2]; // size of grid for composite file; (1,1)-repeat
|
||||
char gridlayout[13]; // row-major: L,R,F,B,U,D for faces; . for unused
|
||||
char gridlayout[12]; // row-major: L,R,F,B,U,D for faces; . for unused
|
||||
|
||||
// method 3: separate files
|
||||
mjStringVec* cubefiles; // different file for each side of the cube
|
||||
|
||||
@@ -549,7 +549,7 @@ typedef struct mjsTexture_ { // texture specification
|
||||
mjString* content_type; // content type of file
|
||||
mjString* file; // png file to load; use for all sides of cube
|
||||
int gridsize[2]; // size of grid for composite file; (1,1)-repeat
|
||||
char gridlayout[13]; // row-major: L,R,F,B,U,D for faces; . for unused
|
||||
char gridlayout[12]; // row-major: L,R,F,B,U,D for faces; . for unused
|
||||
|
||||
// method 3: separate files
|
||||
mjStringVec* cubefiles; // different file for each side of the cube
|
||||
|
||||
@@ -8408,7 +8408,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
name='gridlayout',
|
||||
type=ArrayType(
|
||||
inner_type=ValueType(name='char'),
|
||||
extents=(13,),
|
||||
extents=(12,),
|
||||
),
|
||||
doc='row-major: L,R,F,B,U,D for faces; . for unused',
|
||||
),
|
||||
|
||||
@@ -2986,7 +2986,7 @@ struct MjsTexture {
|
||||
return emscripten::val(emscripten::typed_memory_view(2, ptr_->gridsize));
|
||||
}
|
||||
emscripten::val gridlayout() const {
|
||||
return emscripten::val(emscripten::typed_memory_view(13, ptr_->gridlayout));
|
||||
return emscripten::val(emscripten::typed_memory_view(12, ptr_->gridlayout));
|
||||
}
|
||||
mjStringVec &cubefiles() const {
|
||||
return *(ptr_->cubefiles);
|
||||
|
||||
Reference in New Issue
Block a user