XmlParser: Fixed an error message when the file was correctly parsed
parent
eed75aaf2c
commit
629147043e
|
@ -121,7 +121,6 @@ public:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool result = false;
|
|
||||||
const size_t len = stream->FileSize();
|
const size_t len = stream->FileSize();
|
||||||
mData.resize(len + 1);
|
mData.resize(len + 1);
|
||||||
memset(&mData[0], '\0', len + 1);
|
memset(&mData[0], '\0', len + 1);
|
||||||
|
@ -130,11 +129,11 @@ public:
|
||||||
mDoc = new pugi::xml_document();
|
mDoc = new pugi::xml_document();
|
||||||
pugi::xml_parse_result parse_result = mDoc->load_string(&mData[0], pugi::parse_full);
|
pugi::xml_parse_result parse_result = mDoc->load_string(&mData[0], pugi::parse_full);
|
||||||
if (parse_result.status == pugi::status_ok) {
|
if (parse_result.status == pugi::status_ok) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
ASSIMP_LOG_DEBUG("Error while parse xml.");
|
ASSIMP_LOG_DEBUG("Error while parse xml.");
|
||||||
result = true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pugi::xml_document *getDocument() const {
|
pugi::xml_document *getDocument() const {
|
||||||
|
|
Loading…
Reference in New Issue