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