Fix flex textures for 3D grids.

Fixes #2013.

PiperOrigin-RevId: 728673726
Change-Id: Idb2b6bf9e5392576d0b09f3e71dbea6f4636ae81
This commit is contained in:
Alessio Quaglino
2025-02-19 07:58:27 -08:00
committed by Copybara-Service
parent 7f3bb062c3
commit 6a86247810
6 changed files with 20 additions and 4 deletions
+1
View File
@@ -537,6 +537,7 @@ struct mjvSceneState_ {
mjtNum* flex_node;
mjtNum* flex_radius;
float* flex_rgba;
float* flex_texcoord;
int* hfield_pathadr;
+1 -1
View File
@@ -373,7 +373,7 @@
XMJV( int, flex_bvhadr, nflex, 1 ) \
XMJV( int, flex_bvhnum, nflex, 1 ) \
XMJV( float, flex_rgba, nflex, 4 ) \
X ( float, flex_texcoord, nflextexcoord, 2 ) \
XMJV( float, flex_texcoord, nflextexcoord, 2 ) \
X ( int, mesh_vertadr, nmesh, 1 ) \
X ( int, mesh_vertnum, nmesh, 1 ) \
X ( int, mesh_normaladr, nmesh, 1 ) \