3d-viewer: Don't special-case Paste

Paste layers should be clipped in Realistic mode.  Verifying that paste
doesn't extend beyond the board area should be left to DRC, or
non-realistic mode if you need a 3d view of it.

Fixes https://gitlab.com/kicad/code/kicad/issues/9460
This commit is contained in:
Seth Hillbrand 2021-10-25 11:16:33 -07:00
parent 7812dc1a67
commit ccd3a1e6a9
2 changed files with 1 additions and 5 deletions

View File

@ -571,8 +571,7 @@ void RENDER_3D_OPENGL::reload( REPORTER* aStatusReporter, REPORTER* aWarningRepo
{ {
polyListSubtracted = *map_poly.at( layer_id );; polyListSubtracted = *map_poly.at( layer_id );;
if( ( layer_id != B_Paste ) && ( layer_id != F_Paste ) && if( m_boardAdapter.GetFlag( FL_USE_REALISTIC_MODE ) )
m_boardAdapter.GetFlag( FL_USE_REALISTIC_MODE ) )
{ {
polyListSubtracted.BooleanIntersection( m_boardAdapter.GetBoardPoly(), polyListSubtracted.BooleanIntersection( m_boardAdapter.GetBoardPoly(),
SHAPE_POLY_SET::PM_FAST ); SHAPE_POLY_SET::PM_FAST );

View File

@ -829,9 +829,6 @@ bool RENDER_3D_OPENGL::Redraw( bool aIsMoving, REPORTER* aStatusReporter,
OPENGL_RENDER_LIST* anti_board = m_antiBoard; OPENGL_RENDER_LIST* anti_board = m_antiBoard;
if( ( layer_id == B_Paste ) || ( layer_id == F_Paste ) )
anti_board = nullptr;
if( anti_board ) if( anti_board )
{ {
anti_board->ApplyScalePosition( anti_board->ApplyScalePosition(