Fixed bug which allowed empty filenames to be added to the model list

This commit is contained in:
Cirilo Bernardo
2016-01-25 17:10:08 +11:00
parent cb8ccb5882
commit 8efd3642bc
2 changed files with 2 additions and 2 deletions
@@ -435,7 +435,7 @@ void DIALOG_MODULE_MODULE_EDITOR::BrowseAndAdd3DShapeFile()
}
if( !S3D::Select3DModel( m_PreviewPane, Prj().Get3DCacheManager(),
initialpath, filter, &model ) )
initialpath, filter, &model ) || model.filename.empty() )
{
return;
}