Fixed bug which allowed empty filenames to be added to the model list
This commit is contained in:
parent
cb8ccb5882
commit
8efd3642bc
|
@ -568,7 +568,7 @@ void DIALOG_MODULE_BOARD_EDITOR::BrowseAndAdd3DShapeFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !S3D::Select3DModel( this, Prj().Get3DCacheManager(),
|
if( !S3D::Select3DModel( this, Prj().Get3DCacheManager(),
|
||||||
initialpath, filter, &model ) )
|
initialpath, filter, &model ) || model.filename.empty() )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -435,7 +435,7 @@ void DIALOG_MODULE_MODULE_EDITOR::BrowseAndAdd3DShapeFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !S3D::Select3DModel( m_PreviewPane, Prj().Get3DCacheManager(),
|
if( !S3D::Select3DModel( m_PreviewPane, Prj().Get3DCacheManager(),
|
||||||
initialpath, filter, &model ) )
|
initialpath, filter, &model ) || model.filename.empty() )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue