From 4bc76c93ae8f589f28399975c84ac3fd5ee9c03b Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Tue, 3 Jan 2023 05:02:32 -0800 Subject: [PATCH] Remove "name" attribute from plugin specifiers. PiperOrigin-RevId: 499187319 Change-Id: I0755a071eb4eee917fdf32db49a47fd16afa58f9 --- doc/XMLschema.rst | 4 ++-- src/xml/xml_native_reader.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/XMLschema.rst b/doc/XMLschema.rst index fcfbd77f..11cdb6b4 100644 --- a/doc/XMLschema.rst +++ b/doc/XMLschema.rst @@ -592,7 +592,7 @@ | | | :class: mjcf-attributes | | | | | | | | +-------------------------+-------------------------+-------------------------+ | -| | | | :at:`name` | :at:`plugin` | :at:`instance` | | +| | | | :at:`plugin` | :at:`instance` | | | | | | +-------------------------+-------------------------+-------------------------+ | +--------------------------+----+------------------------------------------------------------------------------------+ | |_3|:el:`config` | \* | .. table:: | @@ -728,7 +728,7 @@ | | | :class: mjcf-attributes | | | | | | | | +-------------------------+-------------------------+-------------------------+ | -| | | | :at:`name` | :at:`plugin` | :at:`instance` | | +| | | | :at:`plugin` | :at:`instance` | | | | | | +-------------------------+-------------------------+-------------------------+ | +--------------------------+----+------------------------------------------------------------------------------------+ | |_4|:el:`config` | \* | .. table:: | diff --git a/src/xml/xml_native_reader.cc b/src/xml/xml_native_reader.cc index ebd674ef..9fc37eaa 100644 --- a/src/xml/xml_native_reader.cc +++ b/src/xml/xml_native_reader.cc @@ -230,7 +230,7 @@ static const char* MJCF[nMJCF][mjXATTRNUM] = { {"body", "R", "11", "name", "childclass", "pos", "quat", "mocap", "axisangle", "xyaxes", "zaxis", "euler", "gravcomp", "user"}, {"<"}, - {"plugin", "*", "3", "name", "plugin", "instance"}, + {"plugin", "*", "2", "plugin", "instance"}, {"<"}, {"config", "*", "2", "key", "value"}, {">"}, @@ -259,7 +259,7 @@ static const char* MJCF[nMJCF][mjXATTRNUM] = { "flatinertia", "solrefsmooth", "solimpsmooth", "vertex", "initial", "curve", "size"}, {"<"}, - {"plugin", "*", "3", "name", "plugin", "instance"}, + {"plugin", "*", "2", "plugin", "instance"}, {"<"}, {"config", "*", "2", "key", "value"}, {">"},