# 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-9d2fd5bffc1f
This commit is contained in:
@@ -1026,6 +1026,10 @@ void PopulateExportMenu()
|
||||
//-------------------------------------------------------------------------------
|
||||
void DoExport(size_t formatId)
|
||||
{
|
||||
if (!g_szFileName) {
|
||||
return;
|
||||
}
|
||||
|
||||
Exporter exp;
|
||||
const aiExportFormatDesc* const e = exp.GetExportFormatDescription(formatId);
|
||||
assert(e);
|
||||
|
||||
Reference in New Issue
Block a user