Don't require a restart to get the current m_Live3DRefresh setting.

Fixes https://gitlab.com/kicad/code/kicad/issues/8349
This commit is contained in:
Jeff Young 2021-05-11 14:44:21 +01:00
parent 25b766e8d7
commit c49af57c2a
1 changed files with 2 additions and 2 deletions

View File

@ -715,7 +715,7 @@ int BOARD_INSPECTION_TOOL::CrossProbePcbToSch( const TOOL_EVENT& aEvent )
m_frame->SendMessageToEESCHEMA( nullptr );
// Update 3D viewer highlighting
m_frame->Update3DView( false, frame()->GetPcbNewSettings()->m_Display.m_Live3DRefresh );
m_frame->Update3DView( false, frame()->GetDisplayOptions().m_Live3DRefresh );
return 0;
}
@ -734,7 +734,7 @@ int BOARD_INSPECTION_TOOL::HighlightItem( const TOOL_EVENT& aEvent )
}
m_probingSchToPcb = false;
bool request3DviewRedraw = frame()->GetPcbNewSettings()->m_Display.m_Live3DRefresh;
bool request3DviewRedraw = frame()->GetDisplayOptions().m_Live3DRefresh;
if( item && item->Type() != PCB_FOOTPRINT_T )
request3DviewRedraw = false;