From 59f732e10d23df3104b161c66efcde3805dade4e Mon Sep 17 00:00:00 2001 From: RichardTea <31507749+RichardTea@users.noreply.github.com> Date: Thu, 20 Jun 2019 16:30:52 +0100 Subject: [PATCH] DAE Import: Don't use SkipElement() to skip empty Text IrrXML doesn't recognise the construction: `` as being an empty element, and so ColladaParser::TestTextContent advances the element stream into the `` element. Use TestClosing(const char*) instead of SkipElement() to skip an empty text element. --- code/Collada/ColladaParser.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/Collada/ColladaParser.cpp b/code/Collada/ColladaParser.cpp index 2106bf01c..860ae2ae9 100644 --- a/code/Collada/ColladaParser.cpp +++ b/code/Collada/ColladaParser.cpp @@ -323,10 +323,8 @@ void ColladaParser::ReadMetaDataItem(StringMetaData &metadata) aiString aistr; aistr.Set(value_char); metadata.emplace(camel_key_str, aistr); - TestClosing(key_str.c_str()); } - else - SkipElement(); + TestClosing(key_str.c_str()); } else SkipElement();