# fix crash when attempting to export without having a model loaded.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@941 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
1c37910f5f
commit
2e2cb8ea79
|
@ -1026,6 +1026,10 @@ void PopulateExportMenu()
|
||||||
//-------------------------------------------------------------------------------
|
//-------------------------------------------------------------------------------
|
||||||
void DoExport(size_t formatId)
|
void DoExport(size_t formatId)
|
||||||
{
|
{
|
||||||
|
if (!g_szFileName) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Exporter exp;
|
Exporter exp;
|
||||||
const aiExportFormatDesc* const e = exp.GetExportFormatDescription(formatId);
|
const aiExportFormatDesc* const e = exp.GetExportFormatDescription(formatId);
|
||||||
assert(e);
|
assert(e);
|
||||||
|
|
Loading…
Reference in New Issue