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:
parent
7812dc1a67
commit
ccd3a1e6a9
|
@ -571,8 +571,7 @@ void RENDER_3D_OPENGL::reload( REPORTER* aStatusReporter, REPORTER* aWarningRepo
|
|||
{
|
||||
polyListSubtracted = *map_poly.at( layer_id );;
|
||||
|
||||
if( ( layer_id != B_Paste ) && ( layer_id != F_Paste ) &&
|
||||
m_boardAdapter.GetFlag( FL_USE_REALISTIC_MODE ) )
|
||||
if( m_boardAdapter.GetFlag( FL_USE_REALISTIC_MODE ) )
|
||||
{
|
||||
polyListSubtracted.BooleanIntersection( m_boardAdapter.GetBoardPoly(),
|
||||
SHAPE_POLY_SET::PM_FAST );
|
||||
|
|
|
@ -829,9 +829,6 @@ bool RENDER_3D_OPENGL::Redraw( bool aIsMoving, REPORTER* aStatusReporter,
|
|||
|
||||
OPENGL_RENDER_LIST* anti_board = m_antiBoard;
|
||||
|
||||
if( ( layer_id == B_Paste ) || ( layer_id == F_Paste ) )
|
||||
anti_board = nullptr;
|
||||
|
||||
if( anti_board )
|
||||
{
|
||||
anti_board->ApplyScalePosition(
|
||||
|
|
Loading…
Reference in New Issue