Non-Windows uses libs3d_plugin prefix for S3D plugins.

https://gitlab.com/kicad/code/kicad/-/issues/12871
This commit is contained in:
Alex Shvartzkop 2023-07-10 20:16:08 +05:00
parent d2f9994fc5
commit e43c8fcf6b
1 changed files with 4 additions and 1 deletions

View File

@ -297,8 +297,11 @@ void S3D_PLUGIN_MANAGER::checkPluginName( const wxString& aPath,
// prevent loading non-plugin dlls
if( wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
{
if( !path.GetName().StartsWith( "s3d_plugin" ) )
if( !path.GetName().StartsWith( "s3d_plugin" )
&& !path.GetName().StartsWith( "libs3d_plugin" ) )
{
return;
}
}
aPluginList.push_back( wxpath );