[F] List of importers can be empty.
parent
f59ab5c34f
commit
d72ff712cb
|
@ -970,15 +970,19 @@ void Importer::GetExtensionList(aiString& szOut) const
|
||||||
(*i)->GetExtensionList(str);
|
(*i)->GetExtensionList(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (std::set<std::string>::const_iterator it = str.begin();; ) {
|
// List can be empty
|
||||||
szOut.Append("*.");
|
if(str.size() > 0)
|
||||||
szOut.Append((*it).c_str());
|
{
|
||||||
|
for (std::set<std::string>::const_iterator it = str.begin();; ) {
|
||||||
|
szOut.Append("*.");
|
||||||
|
szOut.Append((*it).c_str());
|
||||||
|
|
||||||
if (++it == str.end()) {
|
if (++it == str.end()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
szOut.Append(";");
|
szOut.Append(";");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ASSIMP_END_EXCEPTION_REGION(void);
|
ASSIMP_END_EXCEPTION_REGION(void);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue