3d-viewer: Fix a regression: grid was not updated ( now updated by calling CreateDrawGL_List )

This commit is contained in:
unknown 2015-06-19 11:06:52 +02:00 committed by jean-pierre charras
parent 355bd47e16
commit fe6cf2f5f8
2 changed files with 7 additions and 2 deletions

View File

@ -553,8 +553,13 @@ void EDA_3D_CANVAS::Redraw()
// Grid uses transparency: draw it after all objects
if( isEnabled( FL_GRID ) && m_glLists[GL_ID_GRID] )
if( isEnabled( FL_GRID ) )
{
if( ! m_glLists[GL_ID_GRID] )
CreateDrawGL_List( &errorReporter, &activityReporter );
glCallList( m_glLists[GL_ID_GRID] );
}
// Draw Board Shadow

View File

@ -75,7 +75,7 @@ bool PCB_EDIT_FRAME::SetTrackSegmentWidth( TRACK* aTrackItem,
// Micro vias have a size only defined in their netclass
// (no specific values defined by a table of specific value)
// Ensure the netcall is accessible:
// Ensure the netclass is accessible:
if( via->GetViaType() == VIA_MICROVIA && net == NULL )
net = aTrackItem->GetNet();