OCCT 3D model export: don't show fusing errors for non-copper pads.

This commit is contained in:
Alex Shvartzkop 2025-04-13 08:18:27 +03:00
parent 0fca70a0bc
commit 09da370512

View File

@ -882,6 +882,8 @@ bool STEP_PCB_MODEL::AddPadShape( const PAD* aPad, const VECTOR2D& aOrigin, bool
if( !success ) // Error if( !success ) // Error
ReportMessage( wxT( "OCC error adding pad/via polygon.\n" ) ); ReportMessage( wxT( "OCC error adding pad/via polygon.\n" ) );
if( !padShapes.empty() )
{
// Fuse pad shapes here before fusing them with tracks because OCCT sometimes has trouble // Fuse pad shapes here before fusing them with tracks because OCCT sometimes has trouble
if( m_fuseShapes ) if( m_fuseShapes )
{ {
@ -897,6 +899,7 @@ bool STEP_PCB_MODEL::AddPadShape( const PAD* aPad, const VECTOR2D& aOrigin, bool
for( const TopoDS_Shape& shape : padShapes ) for( const TopoDS_Shape& shape : padShapes )
m_board_copper_pads.push_back( shape ); m_board_copper_pads.push_back( shape );
} }
}
return success; return success;
} }