DAE Import: Don't use SkipElement() to skip empty Text

IrrXML doesn't recognise the construction: `<author></author>` as being an empty element, and so ColladaParser::TestTextContent advances the element stream into the `</author>` element.

Use TestClosing(const char*) instead of SkipElement() to skip an empty text element.
pull/2516/head
RichardTea 2019-06-20 16:30:52 +01:00
parent fb8ee5e301
commit 59f732e10d
1 changed files with 1 additions and 3 deletions

View File

@ -323,10 +323,8 @@ void ColladaParser::ReadMetaDataItem(StringMetaData &metadata)
aiString aistr; aiString aistr;
aistr.Set(value_char); aistr.Set(value_char);
metadata.emplace(camel_key_str, aistr); metadata.emplace(camel_key_str, aistr);
TestClosing(key_str.c_str());
} }
else TestClosing(key_str.c_str());
SkipElement();
} }
else else
SkipElement(); SkipElement();