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
parent
fb8ee5e301
commit
59f732e10d
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue