diff --git a/doc/includes/references.h b/doc/includes/references.h index 7e7e7db7..da5329cc 100644 --- a/doc/includes/references.h +++ b/doc/includes/references.h @@ -2141,6 +2141,7 @@ struct mjvSceneState_ { int nskin; int nflex; int nflexvert; + int nflextexcoord; int nskinvert; int nskinface; int nskinbone; @@ -2231,6 +2232,7 @@ struct mjvSceneState_ { int* flex_shell; int* flex_shellnum; int* flex_shelldataadr; + int* flex_texcoordadr; int* flex_bvhadr; int* flex_bvhnum; mjtNum* flex_radius; diff --git a/include/mujoco/mjvisualize.h b/include/mujoco/mjvisualize.h index 3afcf369..37eef03e 100644 --- a/include/mujoco/mjvisualize.h +++ b/include/mujoco/mjvisualize.h @@ -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; diff --git a/include/mujoco/mjxmacro.h b/include/mujoco/mjxmacro.h index 6603a3d4..e8879aeb 100644 --- a/include/mujoco/mjxmacro.h +++ b/include/mujoco/mjxmacro.h @@ -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 ) \ diff --git a/introspect/structs.py b/introspect/structs.py index 37c6d410..fd1f085c 100644 --- a/introspect/structs.py +++ b/introspect/structs.py @@ -6243,6 +6243,11 @@ STRUCTS: Mapping[str, StructDecl] = dict([ type=ValueType(name='int'), doc='', ), + StructFieldDecl( + name='nflextexcoord', + type=ValueType(name='int'), + doc='', + ), StructFieldDecl( name='nskinvert', type=ValueType(name='int'), @@ -6778,6 +6783,13 @@ STRUCTS: Mapping[str, StructDecl] = dict([ ), doc='', ), + StructFieldDecl( + name='flex_texcoordadr', + type=PointerType( + inner_type=ValueType(name='int'), + ), + doc='', + ), StructFieldDecl( name='flex_bvhadr', type=PointerType( diff --git a/unity/Runtime/Bindings/MjBindings.cs b/unity/Runtime/Bindings/MjBindings.cs index 66522106..263568cd 100644 --- a/unity/Runtime/Bindings/MjBindings.cs +++ b/unity/Runtime/Bindings/MjBindings.cs @@ -6076,6 +6076,7 @@ public unsafe struct model { public int nskin; public int nflex; public int nflexvert; + public int nflextexcoord; public int nskinvert; public int nskinface; public int nskinbone; @@ -6157,6 +6158,7 @@ public unsafe struct model { public int* flex_shell; public int* flex_shellnum; public int* flex_shelldataadr; + public int* flex_texcoordadr; public int* flex_bvhadr; public int* flex_bvhnum; public double* flex_radius;