Highlight net during inline drag

Keep consistent UX between inline drag and drag started in the router
tool itself by highlighting the net being dragged

Fixes https://gitlab.com/kicad/code/kicad/issues/9919
This commit is contained in:
Seth Hillbrand 2021-12-09 09:27:40 -08:00
parent 329f00acdc
commit 77fbb495f2
1 changed files with 4 additions and 0 deletions

View File

@ -1731,6 +1731,9 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
{
p = snapToItem( startItem, p0 );
m_startItem = startItem;
if( m_startItem && m_startItem->Net() > 0 )
highlightNet( true, m_startItem->Net() );
}
else if( footprint )
{
@ -1934,6 +1937,7 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
controls()->SetAutoPan( false );
controls()->ForceCursorPosition( false );
frame()->UndoRedoBlock( false );
highlightNet( false );
return 0;
}