Add flex_texcoordadr to mjvSceneState. Fixes #1193.

PiperOrigin-RevId: 582630943
Change-Id: I113b135752268773e0afafe004b8f27c1e96ffc7
This commit is contained in:
Alessio Quaglino
2023-11-15 05:01:02 -08:00
committed by Copybara-Service
parent 7051ab99e0
commit e3b3f96373
5 changed files with 20 additions and 2 deletions
+2
View File
@@ -422,6 +422,7 @@ struct mjvSceneState_ {
int nskin;
int nflex;
int nflexvert;
int nflextexcoord;
int nskinvert;
int nskinface;
int nskinbone;
@@ -512,6 +513,7 @@ struct mjvSceneState_ {
int* flex_shell;
int* flex_shellnum;
int* flex_shelldataadr;
int* flex_texcoordadr;
int* flex_bvhadr;
int* flex_bvhnum;
mjtNum* flex_radius;
+2 -2
View File
@@ -87,7 +87,7 @@
X ( nflexelemdata ) \
X ( nflexshelldata ) \
X ( nflexevpair ) \
X ( nflextexcoord ) \
XMJV( nflextexcoord ) \
XMJV( nmesh ) \
X ( nmeshvert ) \
X ( nmeshnormal ) \
@@ -330,7 +330,7 @@
XMJV( int, flex_shelldataadr, nflex, 1 ) \
X ( int, flex_evpairadr, nflex, 1 ) \
X ( int, flex_evpairnum, nflex, 1 ) \
X ( int, flex_texcoordadr, nflex, 1 ) \
XMJV( int, flex_texcoordadr, nflex, 1 ) \
X ( int, flex_vertbodyid, nflexvert, 1 ) \
X ( int, flex_edge, nflexedge, 2 ) \
XMJV( int, flex_elem, nflexelemdata, 1 ) \