diff --git a/doc/XMLschema.rst b/doc/XMLschema.rst index 56901533..a42b23fa 100644 --- a/doc/XMLschema.rst +++ b/doc/XMLschema.rst @@ -1428,6 +1428,13 @@ | | | | :ref:`texrepeat` | :ref:`texuniform` | | | | | | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ | +------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| |_2| material |br| |_2| |L| | | .. table:: | +| :ref:`layer | \* | :class: mjcf-attributes | +| ` | | | +| | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ | +| | | | :ref:`texture` | :ref:`role` | | | | +| | | +-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+-----------------------------------------------------------------+ | ++------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |_| default |br| |_| |L| | | .. table:: | | :ref:`joint | ? | :class: mjcf-attributes | | ` | | | diff --git a/src/xml/xml_native_reader.cc b/src/xml/xml_native_reader.cc index 47413f3e..fbee962a 100644 --- a/src/xml/xml_native_reader.cc +++ b/src/xml/xml_native_reader.cc @@ -156,6 +156,9 @@ std::vector MJCF[nMJCF] = { {"mesh", "?", "scale", "maxhullvert", "inertia"}, {"material", "?", "texture", "emission", "specular", "shininess", "reflectance", "metallic", "roughness", "rgba", "texrepeat", "texuniform"}, + {"<"}, + {"layer", "*", "texture", "role"}, + {">"}, {"joint", "?", "type", "group", "pos", "axis", "springdamper", "limited", "actuatorfrclimited", "solreflimit", "solimplimit", "solreffriction", "solimpfriction", "stiffness", "range", "actuatorfrcrange", diff --git a/src/xml/xml_native_reader.h b/src/xml/xml_native_reader.h index 51f8bf4d..570a6542 100644 --- a/src/xml/xml_native_reader.h +++ b/src/xml/xml_native_reader.h @@ -102,7 +102,7 @@ class mjXReader : public mjXBase { }; // MJCF schema -#define nMJCF 241 +#define nMJCF 244 extern std::vector MJCF[nMJCF]; #endif // MUJOCO_SRC_XML_XML_NATIVE_READER_H_