From 7458a6e90fea3e573dc25ed61de89be81c302541 Mon Sep 17 00:00:00 2001 From: Alessio Quaglino Date: Tue, 1 Nov 2022 10:41:15 -0700 Subject: [PATCH] Remove unused "flat" attribute from XML schema. PiperOrigin-RevId: 485358643 Change-Id: Ia9e46b346e86e3784ad12be32404ac22ce4c881a --- doc/XMLschema.rst | 4 +--- src/xml/xml_native_reader.cc | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/XMLschema.rst b/doc/XMLschema.rst index 5a1e699a..a4315f4a 100644 --- a/doc/XMLschema.rst +++ b/doc/XMLschema.rst @@ -721,9 +721,7 @@ | | | +-------------------------+-------------------------+-------------------------+ | | | | | :at:`solrefsmooth` | :at:`solimpsmooth` | :at:`vertex` | | | | | +-------------------------+-------------------------+-------------------------+ | -| | | | :at:`flat` | :at:`initial` | :at:`curve` | | -| | | +-------------------------+-------------------------+-------------------------+ | -| | | | :at:`size` | | | | +| | | | :at:`initial` | :at:`curve` | :at:`size` | | | | | +-------------------------+-------------------------+-------------------------+ | +--------------------------+----+------------------------------------------------------------------------------------+ | |_3|:el:`plugin` | \* | .. table:: | diff --git a/src/xml/xml_native_reader.cc b/src/xml/xml_native_reader.cc index bcf0b6c8..8f06d1bf 100644 --- a/src/xml/xml_native_reader.cc +++ b/src/xml/xml_native_reader.cc @@ -255,9 +255,9 @@ static const char* MJCF[nMJCF][mjXATTRNUM] = { {"light", "*", "15", "name", "class", "directional", "castshadow", "active", "pos", "dir", "attenuation", "cutoff", "exponent", "ambient", "diffuse", "specular", "mode", "target"}, - {"composite", "*", "13", "prefix", "type", "count", "spacing", "offset", + {"composite", "*", "12", "prefix", "type", "count", "spacing", "offset", "flatinertia", "solrefsmooth", "solimpsmooth", "vertex", - "flat", "initial", "curve", "size"}, + "initial", "curve", "size"}, {"<"}, {"plugin", "*", "3", "name", "plugin", "instance"}, {"<"},