slightly improved the robusness of the valuestringlist function in collada parsing
This commit is contained in:
parent
ebcbc5f98d
commit
9a137ad9ef
|
@ -309,6 +309,11 @@ namespace io {
|
||||||
assert(list.size() == 1);
|
assert(list.size() == 1);
|
||||||
QString nd = list.at(0).firstChild().nodeValue();
|
QString nd = list.at(0).firstChild().nodeValue();
|
||||||
res = nd.simplified().split(" ",QString::SkipEmptyParts);
|
res = nd.simplified().split(" ",QString::SkipEmptyParts);
|
||||||
|
if(res.empty())
|
||||||
|
{
|
||||||
|
qDebug("Warning valueStringList returned and emtpy list. nothing inside element with tag '%s'", qPrintable(tag));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (res.last() == "")
|
if (res.last() == "")
|
||||||
res.removeLast();
|
res.removeLast();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue