3D shapes downloader: add .step and .stp files to the list of files to download

This commit is contained in:
jean-pierre charras 2017-06-07 11:17:27 +02:00
parent a18d72b5d6
commit 32abc273d0
2 changed files with 7 additions and 2 deletions

View File

@ -397,7 +397,7 @@ bool WIZARD_3DSHAPE_LIBS_DOWNLOADER::downloadOneLib( const wxString& aLibURL,
bool success;
// Get the list of candidate files: with ext .wrl or .wings
// Get the list of candidate files: with ext .wrl .stp .step .STEP .STP or .wings
do
{
GITHUB_GETLIBLIST getter( aLibURL );

View File

@ -122,7 +122,12 @@ protected:
// A callback function to filter 3D filenames
static bool filter3dshapesfiles( const wxString& aData )
{
return aData.Contains( wxT( ".wrl" ) ) || aData.Contains( wxT( ".wings" ) );
return aData.Contains( wxT( ".wrl" ) ) ||
aData.Contains( wxT( ".wings" ) ) ||
aData.Contains( wxT( ".stp" ) ) ||
aData.Contains( wxT( ".step" ) ) ||
aData.Contains( wxT( ".STP" ) ) ||
aData.Contains( wxT( ".STEP" ) );
}
// A callback function to filter 3D folders names