mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
OCCT 3D model export: don't show fusing errors for non-copper pads.
This commit is contained in:
parent
0fca70a0bc
commit
09da370512
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user